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:
Fred Gleason
2024-04-23 15:47:26 -04:00
parent 8e08dad4a4
commit ed481ec3f1
3 changed files with 13 additions and 2 deletions

View File

@@ -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 ''