Jump to content

When daylight savings goes away


Recommended Posts

I'm wondering what code modifications we will have to do if the government eliminates the changing of daylight savings in the USA in the fall of 2023.  I do not know if such a thing is hard coded into a php version or if it checks a global clock somewhere or what.  If it's hard coded into the php software, will we have to upgrade to a specific version at some point to accommodate for the USA change?  Or maybe this is something in the apache server instead and has nothing directly to do with php.

Link to comment
Share on other sites

The DST information would be part of the timezone database.  From what I can tell, PHP includes a bundled copy of this so you'd generally just update PHP to get an updated copy of the database.  There is a PECL extension you can use to update the database independently.  If you keep things up to date then there shouldn't be anything to worry about I believe.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.