Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Error with time data #70

Open
petzi53 opened this issue Aug 27, 2017 · 1 comment
Open

Error with time data #70

petzi53 opened this issue Aug 27, 2017 · 1 comment

Comments

@petzi53
Copy link

petzi53 commented Aug 27, 2017

When I run python exitwp.py I got the following error message:

Traceback (most recent call last): File "exitwp.py", line 374, in <module> write_jekyll(data, target_format) File "exitwp.py", line 296, in write_jekyll i['date'], '%Y-%m-%d %H:%M:%S').replace(tzinfo=UTC()), File "/Users/xxxxx/.pyenv/versions/2.7.10/lib/python2.7/_strptime.py", line 325, in _strptime (data_string, format)) ValueError: time data '0000-00-00 00:00:00' does not match format '%Y-%m-%d %H:%M:%S'

I am not a Python programmer but I looked up what the time data format means and it seems to me that '0000-00-00 00:00:00' DOES MATCH the format '%Y-%m-%d %H:%M:%S'.

Any idea what is wrong? Help would be very appreciated!

@petzi53
Copy link
Author

petzi53 commented Aug 27, 2017

This issue is solved: I've got an answer for my question at StackOverflow.

ILAsoft added a commit to ILAsoft/exitwp that referenced this issue Oct 6, 2017
Automatically and silently default to "None" when an invalid date is encountered.
Resolves some-programs#70
ILAsoft added a commit to ILAsoft/exitwp that referenced this issue Oct 6, 2017
Automatically and silently default to 1900 when an invalid date is encountered.
Resolves some-programs#70
ILAsoft added a commit to ILAsoft/exitwp that referenced this issue Oct 6, 2017
Automatically and silently default to "None" when an invalid date is encountered.
Resolves some-programs#70
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant