wrong time stamp in log filewrong time stamp in log file
am 21.09.2009 20:16:41 von Struzik Wojciech
--0015175cd524c6b32604741a7b75
Content-Type: text/plain; charset=UTF-8
I have updated a php to version 5.2.11. the timestamp in php log is
incorrect. the time differs from local time with 2 hours. In changelog
I can find the following information:
Updated timezone database to version 2009.13 (2009m) (Derick)
Is it related with my problem ???
When I run the following script:
print date('d M Y, H:i');
?>
It's returns a correct time.
I appreciate any help
--0015175cd524c6b32604741a7b75--
RE: wrong time stamp in log filewrong time stamp in log file
am 21.09.2009 20:41:01 von Andrea Giammarchi
--_7decf2a8-61bd-4025-8c3b-8735d7744975_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
> I have updated a php to version 5.2.11.
you should update the keyboard as well=2C it fires CTRL+V twice (subject=2C=
and I am joking ..)
> When I run the following script:
>
> print date('d M Y=2C H:i')=3B
> ?>
> It's returns a correct time.
correct accordingly with your local time zone=2C 'cause I am pretty much su=
re that if you do
print *gmdate*('d M Y=2C H:i')=3B
?>
the time will be exactly the same reported in the log file.
You would have known this if you were developing with E_STRICT since date i=
s a warning=2C even in the phpinfo=2C if you do not set it correctly.
It's a good idea in any case=2C for obvious portability reasons across webs=
ites=2C countries=2C and hosts=2C to use gmdate for time operations=2C othe=
rwise if I use date I could have stuff from the future in another host=2C a=
nd stuff from past in another one.
Regards
____________________________________________________________ _____
Drag n=92 drop=97Get easy photo sharing with Windows Live=99 Photos.
http://www.microsoft.com/windows/windowslive/products/photos .aspx=
--_7decf2a8-61bd-4025-8c3b-8735d7744975_--
Re: wrong time stamp in log filewrong time stamp in log file
am 22.09.2009 00:15:26 von Tommy Pham
----- Original Message ----=0A> From: Andrea Giammarchi
>=0A> To: bm9ib2r5@gmail.com; php-general@lists.php.net=0A> Sent: Monday, S=
eptember 21, 2009 11:41:01 AM=0A> Subject: RE: [PHP] wrong time stamp in lo=
g filewrong time stamp in log file=0A> =0A> =0A> =0A> > I have updated a ph=
p to version 5.2.11.=0A> you should update the keyboard as well, it fires C=
TRL+V twice (subject, and I am =0A> joking ..)=0A> =0A> =0A> > When I run t=
he following script:=0A> > > > print date('d M Y, H:i');=0A> > ?>=0A> > It'=
s returns a correct time.=0A> =0A> correct accordingly with your local time=
zone, 'cause I am pretty much sure that =0A> if you do=0A> > print *gmdate=
*('d M Y, H:i');=0A> ?>=0A> the time will be exactly the same reported in t=
he log file.=0A> =0A> You would have known this if you were developing with=
E_STRICT since date is a =0A> warning, even in the phpinfo, if you do not =
set it correctly.=0A> =0A> It's a good idea in any case, for obvious portab=
ility reasons across websites, =0A> countries, and hosts, to use gmdate for=
time operations, otherwise if I use date =0A> I could have stuff from the =
future in another host, and stuff from past in =0A> another one.=0A> =0A> R=
egards=0A> =0A> ___________________________________________________________=
______=0A> Drag nâ=99 dropâ=94Get easy photo sharing with Windows=
Liveâ=A2 Photos.=0A> =0A> http://www.microsoft.com/windows/windowsliv=
e/products/photos.aspx
Did you set 'Default timezone' in php.ini or us=
e the function date_default_timezone_set() in your app?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php