Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

send_person() error on Windows #6

@mphilli

Description

@mphilli

Just wanted to inform you that when I tried to use the send_person method, I got the following error, and my message would not send:

File ".\Facebot\facebot\message.py", line 127, in send_person
    "message_batch[0][timestamp_relative]": datetime.now().strftime("%I:%M%P"),
ValueError: Invalid format string

However, I saw in this stackoverflow thread that %H is best on Windows OS for where %I is. Also, the 'P' in %P must be lowercase. Therefore, I changed this line of code in message.py to the following, and now it runs fine:

"message_batch[0][timestamp_relative]": datetime.now().strftime("%H:%M%p"),

Just a caution to Windows users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions