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 ? 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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.