View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000478 | Apache 2.x | Bug | public | 2011-07-18 17:46 | 2021-06-07 23:25 |
Reporter | DB1 | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
OS | ECS | OS Version | 2.0 | ||
Product Version | v2.2.1 | ||||
Summary | 0000478: Problem with TZ and logging and invoked cgi scripts | ||||
Description | My 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. | ||||
Tags | No tags attached. | ||||