-2

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 ?

elo
  • 122
  • 1
  • 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 Answers1

2

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

date.timezone

Ken S.
  • 479
  • 5
  • 14