httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: WWW Form Bug Report: "invalid timezone stamps" on Linux (fwd)
Date Mon, 04 Nov 1996 18:24:51 GMT

Confirmed.  In util.c, the function "ht_time" has:

  char *ht_time(pool *p, time_t t, const char *fmt, int gmt) {
    char ts[MAX_STRING_LEN];
    struct tm *tms;

    tms = (gmt ? gmtime(&t) : localtime(&t));

    /* check return code? */
    strftime(ts,MAX_STRING_LEN,fmt,tms);
    return pstrdup (p, ts);
  }

"gmt" is the flag which differentiates DATE_LOCAL and DATE_GMT".  fmt is always
the DEFAULT_TIME_FORMAT from mod_include.c, which is "%A, %d-%b-%y %T %Z".
Should %Z know that it should be "GMT" if tms is gmtime(&t), or should we have
a DEFAULT_GMT_TIME_FORMAT instead?  Is there a better fix?

	Brian


On Mon, 4 Nov 1996, Aram Mirzadeh wrote:
> <Aram>
> 
> jeffi@erols.com said:
> > From nobody@hyperreal.com  Sun Nov  3 23:55:31 1996
> > Message-Id: <199611040455.UAA08055@taz.hyperreal.com>
> > From: jeffi@erols.com
> > To: awm@qosina.com
> > Date: Sun Nov  3 20:55:46 1996
> > Subject: WWW Form Bug Report: "invalid timezone stamps" on Linux
> > 
> > Submitter: jeffi@erols.com
> > Operating system: Linux, version: Slackware 3.0/ Kernel 2.0.24
> > Version of Apache Used: 1.1.1
> > Extra Modules used: (standard install, make/make install)
> > URL exhibiting problem: none
> > 
> > Symptoms:
> > --
> > Both SSI's
> > DATE_LOCAL and DATE_GMT give the local timezone
> > stamp (i have tried it in 3 TZ's)
> > other than that,  the time it gives is correct
> > for both local and GMT
> > --
> > 
> > Backtrace:
> > --
> > 
> > --
> > 
> 
> 
> -- 
> Aram Mirzadeh					awm@qosina.com
> Apache httpd team member			awm@apache.org 
> PGP Key			http://www.qosina.com/~awm/pgpkey.html
> Key Sig:      BE 49 9D F6 2A A7 22 FC  02 E9 1E 3D F7 0C 67 A0
> 
> A diplomat...is a person who can tell you to go to hell in such 
> a way that you actually look forward to the trip. -Caskie Stinnett
> 
> 

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS


Mime
View raw message