feat: move timezone preference to config file (#2096)
BREAKING CHANGE: The timezone preference moved to the configuration file.
This commit is contained in:
parent
8ef82d798e
commit
9b3207b8a4
15 changed files with 73 additions and 15 deletions
|
@ -536,21 +536,10 @@ class Application_Model_Preference
|
|||
return sprintf(_('Powered by %s'), SAAS_PRODUCT_BRANDING_NAME);
|
||||
}
|
||||
|
||||
// Sets station default timezone (from preferences)
|
||||
public static function SetDefaultTimezone($timezone)
|
||||
{
|
||||
self::setValue('timezone', $timezone);
|
||||
}
|
||||
|
||||
// Returns station default timezone (from preferences)
|
||||
public static function GetDefaultTimezone()
|
||||
{
|
||||
$stationTimezone = self::getValue('timezone');
|
||||
if (is_null($stationTimezone) || $stationTimezone == '') {
|
||||
$stationTimezone = 'UTC';
|
||||
}
|
||||
|
||||
return $stationTimezone;
|
||||
return Config::get('general.timezone');
|
||||
}
|
||||
|
||||
public static function SetUserTimezone($timezone = null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue