I'm not familiar with these functions, but wouldn't it be easier to do
putenv("TZ=" . BOLTconfig('timeZone'));
Perhaps with some conversion or verification of values entered and/or
a default setting of some sort? I'm not sure how this would affect
sites using timestamps. Does it affect their rendering or only the
creation of new timestamps?
Cheers,
Dan
On Thu, Oct 22, 2009 at 9:41 PM, Kevin <[email protected]> wrote:
> I don't see anything in site.config for setting the timezone.
>
> Is there somewhere else that is set?
>
> Was expecting a setting in site.config like:
>
> timeZone: US/Eastern
>
> in site.config
>
> then in some initialization script somewhere...
>
> $timeZone = BOLTconfig('timeZone');
> set_tz($$timeZone);
>
> ...
>
> The function set_tz works for both PHP 5.1+ and older
>
> function set_tz ($TZ){
> if (phpversion() >= "5.1.0") {
> date_default_timezone_set($TZ);
> } else {
> putenv("TZ=" . $TZ);
> }
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---