PHP and Timezonedb

Status
Not open for further replies.

owen0003

New Member
Messages
7
Reaction score
1
Points
3
Quick technical question:

PHP is essentially statically bound to the state of the time zone database at the time it was compiled. That database changes much more often than PHP, so it becomes and stays slightly off very quickly. To address this, there is a PEAR/PECL module timezonedb which replaces the stale time zone data with the most current.

1. Does x10hosting subscribe to that module?
2. If not, is there a way that individual users can do so?
3. If the answer to both of those is "no" for free users, is either answer "yes" for paid users?

It is not a disaster to not be able to make use of the current data. But it would be much better if we can.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
You can enable this module in cPanel.
cPanel X3 (refer to 'switch theme') > Select PHP version
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Does x10hosting subscribe to that module?
my PHP version is set to 5.5
my x10hosting's free-hosting server is [ xo3 ]

with this script...
PHP:
<?php
  error_reporting(E_ALL);
  print "timezone DB version ==>" . timezone_version_get() . "<==<br>\n";
?>

and this site --> [ https://pecl.php.net/package/timezonedb ]

before I set (enabled) - [ timezonedb ]
Version [ 2015.5 ] - Release Date [ 2015-06-15 ]

after I set (enabled) - [ timezonedb ]
Version [ 2016.4 ] - Release Date [ 2016-04-18 ]

BUT - on this site --> [ https://pecl.php.net/package/timezonedb ]
current version is [ 2016.6 ] - Release Date [ 2016-07-06 ]
 
Last edited:

owen0003

New Member
Messages
7
Reaction score
1
Points
3
Thank you, caftpx10, for pointing me to the option that I missed. And thank you, bdistler, for demonstrating that there is still a lag and how to show what is in use.
 
Status
Not open for further replies.
Top