View Issue Details

IDProjectCategoryView StatusLast Update
0000478Apache 2.x Bugpublic2021-06-07 13:55
ReporterDB1 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
OSECSOS Version2.0 
Product Versionv2.2.1 
Summary0000478: Problem with TZ and logging and invoked cgi scripts
DescriptionMy TZ variable is set to GMT0BST,3,-1,0,3600,10,-1,0,7200,3600

With this setting perl scripts get the timezone and timezone offset correctly. Apache log files on the other hand do not - it thinks everything is GMT even when DST is in effect. ie the time stamps are one hour out.

[T:\tmp]Maildate.pl
GMT0BST,3,-1,0,3600,10,-1,0,7200,3600
isdst = 1
GMT, 0, BST
Date: Mon, 18 Jul 2011 09:12:36 +0100 (BST)

Setting TZ to the POSIX format of GMT0BST,M3.5.0/2,M10.5.0/3 screws perl scripts:

[T:\tmp]maildate.pl
GMT0BST,M3.5.0/2,M10.5.0/3
isdst = 0
GMT, 0, BST
Date: Mon, 18 Jul 2011 09:12:55 +0000 (GMT)

The Apache log does the same thing - ie the time is correct local time but the offset and time zone is wrong. I had a look at the source and got quickly confused :-) It would seem that isdst is not getting correctly set whn TZ is in POSIX format.
TagsNo tags attached.

Activities

psmedley

2011-07-22 22:34

administrator   ~0001942

apr timezone code is fugly :P

Issue History

Date Modified Username Field Change
2011-07-18 08:16 DB1 New Issue
2011-07-22 22:34 psmedley Note Added: 0001942