some-programs / exitwp

Exitwp is tool primarily aimed for making migration from one or more wordpress blogs to the jekyll blog engine as easy as possible.
686 stars 145 forks source link

Error with time data #70

Open petzi53 opened 7 years ago

petzi53 commented 7 years ago

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 commented 7 years ago

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