Skip to content

Error in date formatting #92

@nitzanm

Description

@nitzanm

I'm trying to run Hookbox on a Windows PC with Python 2.6. I'm getting the following error

File "c:\Program Files (x86)\Python2.6\lib\site-packages\hookbox-0.3.3-py2.6.egg\hookbox\admin\admin.py", line 101, in webhook_event
  "date": datetime.datetime.now().strftime("%A %d-%b-%y %T %Z")
ValueError: Invalid format string

Checking out the Python docs (http://docs.python.org/library/datetime.html#strftime-strptime-behavior), indeed I don't see that %T is a valid field.

I'm not sure what was supposed to be there, but maybe it was supposed to be %H:%M:%S?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions