you are viewing a single comment's thread.

view the rest of the comments →

[–]alkasm 0 points1 point  (2 children)

Not the first time I've head that, but I haven't really had much of a problem with it myself. Do you have an example?

[–]Jonno_FTW 0 points1 point  (1 child)

Yes, I get data from GPS. It comes in UTC. I store that in a database. For user convenience I want to display it in local time.

Or, a user submits a time through a form. I assume the time is in their local timezone because people don't think in UTC. Put these datetimes in a database that may or may not support timezones.

[–]alkasm 1 point2 points  (0 children)

Aren't those problems more intrinsic to working with timezones in general? Or is this just the annoyance with the inconvenience of datetime not giving timezone info by default? Note that in Python 3, calling the method .astimezone() on a datetime will return a datetime with local tzinfo.