Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Followed a best practice in the time zones docs.

Prevented localize from swallowing non existent or ambiguous
datetimes.
  • Loading branch information...
commit 4b58e94f271790675782f617288d915169e99654 1 parent 38408f8
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/i18n/timezones.txt
View
2  docs/topics/i18n/timezones.txt
@@ -656,7 +656,7 @@ Usage
>>> from django.utils.dateparse import parse_datetime
>>> naive = parse_datetime("2012-02-21 10:28:45")
>>> import pytz
- >>> pytz.timezone("Europe/Helsinki").localize(naive)
+ >>> pytz.timezone("Europe/Helsinki").localize(naive, is_dst=None)
datetime.datetime(2012, 2, 21, 10, 28, 45, tzinfo=<DstTzInfo 'Europe/Helsinki' EET+2:00:00 STD>)
Note that ``localize`` is a pytz extension to the :class:`~datetime.tzinfo`
Please sign in to comment.
Something went wrong with that request. Please try again.