Tuesday, July 31, 2012

Re: No timezone support for TimeField?

On 7/31/12 1:34 PM, Tejinder Singh wrote:
Django 1.4 does not store aware times for TimeField, it only does for DateTimeField. Its really annoying, as python datetime.time object does support TZINFO just like datetime.datetime objects. I wonder if it is a bug? Btw i have tested it on postgres 9.1 database server
Time zones have no meaning without a date attached, so having a time zone travel with a time of day does not lead to something useful. fwiw I implemented the Postgres date/time types back in the day...

                           - Tom

No comments:

Post a Comment