Author
|
Message
|
Senior Member
|
06-12-2012
, 18:03
get_systime() (timestamp) -> php problem
|
#1
|
Edit: now it's working, the problem was caused by apache server, I resolved it editing the php.ini. Anyway, sorry for this topic, get_systime() is working fine !
Hi,
I'm having problem with timestamp. I'm storing dates (timestamp and other infos) into a database, but when I'm converting them into normal display date (php function), the date does not match !
Ex, the output from server (via amxx): get_systime() -> 1339537875
Converting it into date (via php): date('d-m-Y / H:m:s', 1339537875);
I don't know why It's converted with 2 hours lost. It should be 03:00, but it's 01:00.
I also thought that I'm not converting by the normal US date (month / date / year) but is the same problem. But anyway, get_systime() is getting the timestamp from the same clock, right?
date('m-d-Y / H:m:s', 1339537875)
Thank you !
Last edited by killergirl; 06-12-2012 at 18:11.
|
|
|
|