我想我的WordPress網站轉換成使用程序exitwp的靜態站點生成器。但在轉換過程中,我總是得到以下錯誤消息:ValueError異常:實時數據 '0000-00-00 00:00:00' 不匹配格式 '%Y-%間%d%H:%M:%S'
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'
我不是一個Python程序員,但我擡頭一看什麼時候的數據格式,則意味着它在我看來,「0000-00-00 00 :00:00'匹配格式'%Y-%m-%d%H:%M:%S'。
任何想法是什麼錯?幫助將非常感激!