当前位置:   article > 正文

java %y-%m-%d_ValueError: time data '0000-00-00 00:00:00' does not match format '%Y-%m-%d %H:%M:%S'

time data "00:00:00" doesn't match format "%y-%m-%d %h:%m:%s", at position 6

2017-08-27 13:57:09

0

I am trying to convert my WordPress site to a static site generator using the program exitwp. But during the conversion process, I always get the following error message:

Traceback (most recent call last):

File "exitwp.py", line 374, in

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!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/282283
推荐阅读
相关标签
  

闽ICP备14008679号