Closes Issue#22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.

This commit is contained in:
Alexander Belopolsky 2015-09-06 13:07:21 -04:00
parent 40dc328cc2
commit 7827a5b7c2
5 changed files with 23 additions and 8 deletions

View file

@ -1920,6 +1920,8 @@ class timezone(tzinfo):
@staticmethod
def _name_from_offset(delta):
if not delta:
return 'UTC'
if delta < timedelta(0):
sign = '-'
delta = -delta