Mailing List Archive

[Bug 8368] New: - echo DATE_LOCAL ignores timezone from TZ environment variable
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8368

echo DATE_LOCAL ignores timezone from TZ environment variable

Summary: echo DATE_LOCAL ignores timezone from TZ environment
variable
Product: Apache httpd-1.3
Version: 1.3.23
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: mod_include
AssignedTo: bugs@httpd.apache.org
ReportedBy: sn@neopoly.com


This is the same bug as PR 4315 from the old database
(http://bugs.apache.org/index.cgi/full/4315) that never got fixed.

This .shtml document demonstrates the problem:

===================8<========================
<PRE>
without TZ (TZ=<!--#echo var="TZ" -->):
<!--#echo var="DATE_LOCAL" -->

<!--#set var="TZ" value="EST" -->

with TZ (TZ=<!--#echo var="TZ" -->):
<!--#echo var="DATE_LOCAL" -->
</PRE>
===================8<========================
The output doesn't change, despite the change in timezone (tested in timezone CEST).

It should work like it does in a shell:
$ date
Mon Apr 22 16:24:16 CEST 2002
$ TZ=EST date
Mon Apr 22 09:24:19 EST 2002

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org