List:Eventum General Discussion« Previous MessageNext Message »
From:Bryan Alsdorf Date:June 10 2005 9:24pm
Subject:Re: Change Everyone's Timezone?
View as plain text  
Eric,

>>Is there a way to change all of the user's time zones at 
>>once?  I'm sure 
>>it could be done with a simple UPDATE query but I'm not sure 
>>the syntax 
>>of the field.
>>
> 
> 
> It's actually not that simple. The timezone information is kept on the
> usr_preferences field on eventum_user. However, the value stored on that
> field is actually a serialized array, which contains the timezone value.
> I suppose you could write a PHP script to fetch that value, unserialize
> it into an array, change the timezone value, serialize it again and save
> it back into the table.

One other thing you might be interested in is setting the default 
timezone for new users. To do this, add this line to the file 
/path-to-eventum/config.inc.php

define('APP_DEFAULT_TIMEZONE', 'UTC');

Changing 'UTC' to be whatever timezone you are in.

Regards,
/bryan
Thread
Change Everyone's Timezone?Eric Kenny10 Jun
  • RE: Change Everyone's Timezone?Joao Prado Maia10 Jun
    • Re: Change Everyone's Timezone?Bryan Alsdorf10 Jun