Regional Settings Question

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 11, 2011   (RSS)

By gkornbluth - May 10, 2011

Hi All,

Just curious,

Why, in V2.07 on the Admin>General page do the “Regional Settings” on most installs show as:

“Timezone Name” with a pull down for a long list of locations and times

and on some installs as:

“Server Time” and “Local Time Adjustment”?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Regional Settings Question

By Dave - May 10, 2011

Hi Jerry,

It's actually based on the version of PHP you have. If you have PHP 5.1+ it will show the timezone pulldown because that version supports timezones with: http://php.net/date-default-timezone-set

Earlier PHP versions don't support timezones so we hand-coded a workaround that lets you put in the offset amount in hours and minutes.

Interestingly, the code in general.php actually decides what to show by checking if that built-in PHP function exists:
<?php if (function_exists('date_default_timezone_set')): ?>

Hope that helps! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [gkornbluth] Regional Settings Question

By Dave - May 11, 2011

And thanks for your interest! ;)
Dave Edis - Senior Developer
interactivetools.com