mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-04-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in the PyPAD subsystem that broke null datetime handling. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -90,6 +90,8 @@ class Update(object):
|
||||
|
||||
def __fromIso8601(self,string):
|
||||
try:
|
||||
if len(string)==0:
|
||||
return datetime.datetime()
|
||||
return datetime.datetime.strptime(string.strip()[:19],'%Y-%m-%dT%H:%M:%S')
|
||||
except AttributeError:
|
||||
return ''
|
||||
|
Reference in New Issue
Block a user