How to store a time of day in Tryton?


(Jan Grasnick) #1

How do I store a time of day in Tryton? If I use fields.Time the value is stored in UTC to the database and shown DST-aware in the client. But what if an event will happen at 14:00 - regardless of daylight saving time?


(Cédric Krier) #2

You must use a Time field. I do not see why you say it is stored in UTC because normally there is no timezone in it and client does not perform any timezone conversion on it.
In Tryton, only DateTime field has timezone conversion.


(Jan Grasnick) #3

Ok. In SAO it is shown timezone aware while it is stored without in sqlite. Need to check.


(Cédric Krier) #4

Please fill an issue if sao perform any timezone modification on Time field.