Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

2  
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

1 Answer 1

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

date.timezone

share|improve this answer

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