ankur0101 Posted June 16, 2012 Share Posted June 16, 2012 Hi, I am running Windows XP where I have installed XAMPP Its 6:30 PM at my windows xp's clock. I run a following code <?php echo date("h:i A"); ?> It is showing me 02:50 PM Why it is showing wrong time ? Quote Link to comment https://forums.phpfreaks.com/topic/264289-php-showing-wrong-time-on-windows-xp/ Share on other sites More sharing options...
trq Posted June 16, 2012 Share Posted June 16, 2012 Have you set the timezone in the php.ini? Quote Link to comment https://forums.phpfreaks.com/topic/264289-php-showing-wrong-time-on-windows-xp/#findComment-1354396 Share on other sites More sharing options...
ankur0101 Posted June 16, 2012 Author Share Posted June 16, 2012 I did nothing. Just installed xampp and started using it. Quote Link to comment https://forums.phpfreaks.com/topic/264289-php-showing-wrong-time-on-windows-xp/#findComment-1354398 Share on other sites More sharing options...
trq Posted June 16, 2012 Share Posted June 16, 2012 Hint, set the timezone in your php.ini. Quote Link to comment https://forums.phpfreaks.com/topic/264289-php-showing-wrong-time-on-windows-xp/#findComment-1354399 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.