This commit is contained in:
Kovid Goyal 2019-03-08 08:58:47 +05:30
parent d205255cb7
commit 893c8a970c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -194,9 +194,11 @@ def isoformat(date_time, assume_utc=False, as_utc=True, sep='T'):
# str(sep) because isoformat barfs with unicode sep on python 2.x
return unicode(date_time.isoformat(str(sep)))
def internal_iso_format_string():
return 'yyyy-MM-ddThh:mm:ss'
def w3cdtf(date_time, assume_utc=False):
if hasattr(date_time, 'tzinfo'):
if date_time.tzinfo is None: