jd2007 Posted October 4, 2007 Share Posted October 4, 2007 Code: <?php echo $now = strftime("%Y-%m-%d %I:%M:%S"); ?> i get this: 2007-04-02 02:25:40 the 04 should actually be 10, its October...why is it showing 04 which April ? Quote Link to comment https://forums.phpfreaks.com/topic/71784-why-does-strftime-giving-me-the-wrong-month/ Share on other sites More sharing options...
heckenschutze Posted October 4, 2007 Share Posted October 4, 2007 Because the servers clock is probably wrong. Quote Link to comment https://forums.phpfreaks.com/topic/71784-why-does-strftime-giving-me-the-wrong-month/#findComment-361491 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.