Remove tzinfo from untimzoned date
issue2439 review238001
This commit is contained in:
1 parent
e9289a191a
commit
51c73ad3d1
1 file changed
+1
-1
@@ -1460,7 +1460,7 @@ def timezoned_date(date, reverse=False):
|
||||
return date
|
||||
|
||||
def untimezoned_date(date):
|
||||
return timezoned_date(date, reverse=True)
|
||||
return timezoned_date(date, reverse=True).replace(tzinfo=None)
|
||||
|
||||
|
||||
def humanize(size):
|
||||
|
||||
Reference in new issue
Block a user