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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to