Skip to main content

PHP Time Stamp Incorrect

Comments

5 comments

  • El Morgan
    Hi - have you tried adding this to your php.ini? You'd want to make sure you use the correct time zone for your location, of course! [Date] ; Defines the default timezone used by the date functions date.timezone = America/New_York
    0
  • keat63
    After a little digging last night, i found that changing PHP config from UTC to Europe/London, fixed the time stamp issue. I'm not sure what will happen in October when the clocks go backwards though. I guess I'll address this later in the year.
    0
  • matthers
    your server time is synced to a NTP time server and the hour will be automatically adjusted when the clocks go +/- 1 hour
    0
  • keat63
    The clocks did adjust accordingly a few weeks ago, i assume that the issue was with PHP and UTC. It's this that i'm questioning
    0
  • cPanelMichael
    Hello, The date/time should automatically adjust based on the time server during daylight savings time events. Thank you.
    0

Please sign in to leave a comment.