httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@imdb.com (Rob Hartill)
Subject Re: WWW Form Bug Report: "Problem with timezone logging format" on Solaris 2.x
Date Wed, 01 Jan 1997 16:09:00 GMT

Hi,

Thanks for the info. We'll try to get this into the next release.

cheers,
rob



dieter@tplex.com.au wrote:
>
>Submitter: dieter@tplex.com.au
>Operating system: Solaris 2.x, version: 
>Version of Apache Used: various
>Extra Modules used: 
>URL exhibiting problem: 
>
>Symptoms:
>--
>In a number of places in the code, logging timestamps are displayed using code like:
>
>    sprintf(tstr, " [%.2d/%s/%d:%.2d:%.2d:%.2d %c%02ld%02ld] \"", t->tm_mday,
>            month_snames[t->tm_mon], t->tm_year + 1900, t->tm_hour, t->tm_min,
>            t->tm_sec, sign, timz/3600, timz%3600);
>
>This code is broken for timezones which are not an exact number of hours away from UTC
- the timz%3600 calculation will be 1800 for a half hour offset, for instance.
>
>Thus for Adelaide (9:30 East of Greenwich) in summer the log file will show:
>
>    ...+101800]...
>
>instead of:
>
>    ....+1030]...
>
>The code should read (timz%3600)/60.
>
>There may be a fix in 1.2b4 (the code has certainly changed in this area), but I was not
able to test this.
>
>Please check that the new release will work with non integral timezone offsets.
>
>
>--
>
>Backtrace:
>--
>
>--
>


-- 
Rob Hartill.       Internet Movie Database Ltd.    http://www.imdb.com/  

Mime
View raw message