Fixed the unit tests and changed ops->zu
This commit is contained in:
parent
a07121787f
commit
345c782eb9
4 changed files with 7 additions and 4 deletions
|
@ -545,7 +545,11 @@ class Application_Model_Preference
|
|||
// Returns station default timezone (from preferences)
|
||||
public static function GetDefaultTimezone()
|
||||
{
|
||||
return self::getValue("timezone");
|
||||
$stationTimezone = self::getValue("timezone");
|
||||
if (is_null($stationTimezone) || $stationTimezone == "") {
|
||||
$stationTimezone = "UTC";
|
||||
}
|
||||
return $stationTimezone;
|
||||
}
|
||||
|
||||
public static function SetUserTimezone($timezone = null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue