From 81d85866d117f86b93d0b770082c67e0bd722ef7 Mon Sep 17 00:00:00 2001 From: Robert Helmer Date: Sun, 8 Jan 2012 00:01:58 -0800 Subject: [PATCH] bug 715343 - most of the existing cron jobs start scripts do not override the default dates from commonconfig, so return None in this case to match the old behavior --- socorro/lib/datetimeutil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/socorro/lib/datetimeutil.py b/socorro/lib/datetimeutil.py index 805cbf2f52..ad0547971f 100644 --- a/socorro/lib/datetimeutil.py +++ b/socorro/lib/datetimeutil.py @@ -64,6 +64,8 @@ def string_to_datetime(date): * ['2012-01-10', '12:13:14'] """ + if date is None: + return None if isinstance(date, datetime.datetime): if not date.tzinfo: date = date.replace(tzinfo=UTC)