mirror of
https://github.com/django/django.git
synced 2025-10-14 20:41:00 +00:00
Updated UTC uses to datetime.timezone.utc in docs.
This commit is contained in:
parent
5c2c7277d4
commit
a16132a9c4
3 changed files with 4 additions and 4 deletions
|
@ -721,8 +721,8 @@ Usage example::
|
|||
{'date': datetime.date(2014, 6, 15),
|
||||
'day': datetime.datetime(2014, 6, 16, 0, 0, tzinfo=zoneinfo.ZoneInfo('Australia/Melbourne')),
|
||||
'hour': datetime.datetime(2014, 6, 16, 0, 0, tzinfo=zoneinfo.ZoneInfo('Australia/Melbourne')),
|
||||
'minute': 'minute': datetime.datetime(2014, 6, 15, 14, 30, tzinfo=zoneinfo.ZoneInfo('UTC')),
|
||||
'second': datetime.datetime(2014, 6, 15, 14, 30, 50, tzinfo=zoneinfo.ZoneInfo('UTC'))
|
||||
'minute': 'minute': datetime.datetime(2014, 6, 15, 14, 30, tzinfo=timezone.utc),
|
||||
'second': datetime.datetime(2014, 6, 15, 14, 30, 50, tzinfo=timezone.utc)
|
||||
}
|
||||
|
||||
``TimeField`` truncation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue