Chris->[PHP] Re: Weird results for 2 lines of damn code

From: Date: Fri, 17 Oct 2003 01:31:32 +0000
Subject: Chris->[PHP] Re: Weird results for 2 lines of damn code
Groups: php.general 
Request: Send a blank email to php-general+get-166387@lists.php.net to get a copy of this message
Hey Chris, Thanks for replying. Its certainly weird how its working with you, it should have worked with me too as I did that example straight out of the manual (slightly modified to suit my needs) Anyway, here is a solution sent to me by Jon from the list which works great, might work with your server too: Replace %G _with_ %Y Cheers, -Ryan Hey Ryan, Just did a straight copy and paste of your code into a php page on my server. CODE: $ryan=strtotime ("now"); echo $ryan."<br>"; echo strftime("%G-%m-%a %H:%M:%S", $ryan)."<br>"; RESULT: 1066353488 2003-10-Thu 21:18:08 Seems to work fine for me...This seems to be a deeper problem than your code itself, probably having something to do with your computer or its libraries. Reading through www.php.net/strftime there were a few warnings about systems not conforming to ISO standards and doing quirky things.

« previous php.general (#166387) next »