# HG changeset patch # User Paul Boddie # Date 1390779607 -3600 # Node ID 25ac87b5950fd07e589e1f8602ef3e98bb087e6c # Parent e675cfc8739569626dfdcc0880e015ce5ffd6345 Made the time zone in ISO 8601 datetime strings optional when a time is given. diff -r e675cfc87395 -r 25ac87b5950f DateSupport.py --- a/DateSupport.py Sat Jan 25 18:39:32 2014 +0100 +++ b/DateSupport.py Mon Jan 27 00:40:07 2014 +0100 @@ -58,7 +58,7 @@ timezone_iso8601_offset_str = ur'(?P(?:(?P[-+])(?P[0-9]{2}):(?P[0-9]{2})))' datetime_iso8601_regexp_str = date_regexp_str + \ ur'(?:T' + time_regexp_str + \ - ur'(?:(?PZ)|(?P' + timezone_iso8601_offset_str + '))' \ + ur'(?:(?PZ)|(?P' + timezone_iso8601_offset_str + '))?' \ ur')?' date_icalendar_regexp = re.compile(date_icalendar_regexp_str, re.UNICODE)