Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think I have made ​​several ntp settings, and make synchronization across multiple servers on different timezones. On my php scripts, date is displayed randmomly for (+2 , +3 timezone ) , for example on first refresh shows 15:08 , for other refresh shows 16:08. How to solve this problem ?

share|improve this question

closed as not a real question by MDMarra, Michael Hampton, Chris S Oct 17 '12 at 13:48

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

NTP is timezone independent. All NTP communication is in UTC. Your Operating System and/or PHP is converting your time for you, it's not a NTP problem. – Chris S Oct 17 '12 at 13:47

You can force PHP to use the value set in php.ini. Search for date.timezone in php.ini and adjust accordingly.


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.