timezone#
- trytond.tools.timezone.get_tzinfo(zoneid)#
Get a class representing a IANA time zone specified by the string
zoneid.
- trytond.tools.timezone.available_timezones()#
Return a set of all the valid IANA keys available.
- trytond.tools.timezone.UTC#
The UTC
datetime.tzinfoinstance.
- trytond.tools.timezone.SERVER#
The server timezone
datetime.tzinfoinstance.Tryton tests the environment variables
TRYTOND_TZandTZin this order to select to IANA key to use. If they are both empty, it defaults toUTC.