Re: Re: Erroneous date and time

From: Date: Wed, 16 Jun 2004 13:19:10 +0000
Subject: Re: Re: Erroneous date and time
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-34814@lists.php.net to get a copy of this message
Have you tried with "a" insted of "A" for am/pm indication?
Yes, I have tried both 'a' and 'A'. Still gives an incorrect time. ~Philip
Hope can help Bye Franciccio "Philip Thompson" <prthomp@uark.edu> ha scritto nel messaggio news:3EA46480-BF03-11D8-8E73-000393C795C4@uark.edu...
Hi all. Maybe there's something I'm doing incorrectly, but I cannot get the date() function to return the appropriate time. It's always 12 hours off. I've tried using 24-hour time and 12-hour time (with AM/PM), but they both give the wrong time. I even emailed the server admin to make sure that the server clock was set correctly, and he said that it was. I don't know... Here's my PHP: $problemDateTime = date("Y-m-d g:i:s A"); which returns: 2004-06-13 11:24:21 PM To the untrained eye ;), that might appear correct. But that was actually submitted at 11:24 AM, not PM. So, that's my code. Any suggestions?? Thanks a bunch, ~Philip
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#34814) next »