Depend on duplicated configuration to use correct timezone
|Reported by:||Ryan J Ollos||Owned by:||Steffen Hoffmann|
The server that hosts my Trac instance is 2 hours ahead of my location. I have the following setting in trac.ini:
[trac] default_timezone = US/Pacific
It is currently 23:30 on 10-Aug and WikiTicketCalendarMacro is showing the highlighted day as 11-Aug, so I'm assuming that the
default_timezone is not being used. I've seen this issue with other plugins and macros.
I haven't looked closely at the code, but the timezone preference can be obtained from
formatter.req.tz or the tzinfo.localize() method may be useful here.
Change History (15)
comment:3 Changed 7 years ago by
|Keywords:||timezone locale added|
|Status:||new → assigned|
|Summary:||Does not use correct timezone → Depends on duplicated configureation to use correct timezone|
|Type:||defect → enhancement|
comment:7 Changed 7 years ago by
|Summary:||Depends on duplicated configureation to use correct timezone → Depend on duplicated configuration to use correct timezone|