Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Hour Problem



Threaded Mode | Print  

 Hour Problem (4 Replies, Read 7251 times)
Nube
Group: Member
Post Group: Newbie
Posts: 29
Status:
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?
IP: --   

Hour Problem
Nube
Group: Member
Post Group: Newbie
Posts: 29
Status:
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
IP: --   

Hour Problem
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Hour Problem
Nube
Group: Member
Post Group: Newbie
Posts: 29
Status:
Thanks! :)
IP: --   

Hour Problem
ketan
Group: Member
Post Group: Working Member
Posts: 241
Status:
Hi,

Please let us know if you need further information.

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

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 18, 2024, 10:19 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.021