Softaculous


Topic : Hour Problem


Posted By: Nube on January 1, 2012, 10:51 pm
I have a problem with hour, i use this php script to "see" date and hour and the hour is not correct..

I tried to change the AMPPS setting putting "GMT+1" in the user controll settings but nothing changed.. I live in italy and the displayed hour is 22:50 instead of 23:50..

After setting the GMT+1 i restarted Apache and Mysql but nothing..

Do I have to edit PHP.ini file? if so, which line to edit?

Posted By: Nube on January 1, 2012, 10:54 pm | Post: 1
sorry i forgot to put the Php code:

PHP Code

<?php  
echo date ("d-m-Y H:i:s");  
?>



OT

how to edit a message?

/OT

Posted By: tidus on January 2, 2012, 5:42 am | Post: 2
Quote From : Nube January 1, 2012, 10:51 pm
I have a problem with hour, i use this php script to "see" date and hour and the hour is not correct..

I tried to change the AMPPS setting putting "GMT+1" in the user controll settings but nothing changed.. I live in italy and the displayed hour is 22:50 instead of 23:50..

After setting the GMT+1 i restarted Apache and Mysql but nothing..

Do I have to edit PHP.ini file? if so, which line to edit?


Hi,

Edit the following line in php.ini(AMPPS Control Center -> PHP Tab -> Configuration),
Code
date.timezone = America/New_York


List of supported timezones can be found at http://www.php.net/manual/en/timezones.php



Edited by tidus : January 2, 2012, 5:42 am

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: Nube on January 2, 2012, 12:31 pm | Post: 3
Thanks! :)

Posted By: ketan on January 2, 2012, 1:16 pm | Post: 4
Hi,

Please let us know if you need further information.

-----------------------
Follow AMPPS on,
Twitter
Facebook
Google+

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.