Menu

Commit [r11397]  Maximize  Restore  History

0.12-stable: make `to_datetime` more robust (#10863)

- when given a naive datetime and a pytz timezone info,
the returned aware datetime instance had a wrong utcoffset
due to a misuse of the pytz API
- in general, make `to_datetime` always return aware and
normalized datetime instances

cboos 2012-10-06

changed /branches/0.12-stable/trac/util/datefmt.py
changed /branches/0.12-stable/trac/util/tests/datefmt.py
/branches/0.12-stable/trac/util/datefmt.py Diff Switch to side-by-side view
Loading...
/branches/0.12-stable/trac/util/tests/datefmt.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB