> does anybody here knows why i sometimes get a 16 hrs delay when i use this
> code below to get the date?
>
> ($sec, $min, $hour, $mday, $mon, $year, $wday) =
> (localtime(time))[0,1,2,3,4,5,6]

Just writing

($sec, $min, $hour, $mday, $mon, $year, $wday) = localtime ;

has the same result and is a little nicer...

> $year += 1900;
>
> here are my outputs...
>

Looks like your Apache child runs on different timezones...

Try [+ scalar (localtime) +] inside your page. Do you see the same result?

If not there must be an error in your code, if yes I guess some of your
scripts/modules changes the timezone.

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • date Randy Nivales
    • Gerald Richter

Reply via email to