$this->loadConfig($template."/format.cfg");
if($lang!="" && preg_match('/^[a-zA-Z0-9_-]+$/',$lang))
$this->loadConfig($template."/".$lang."/format.cfg");
+ //check timezone
+ $tz=$this->gettimezone();
+ if($tz==null || $tz==false || $tz==""){
+ $this->settimezone(date_default_timezone_get());
+ }else{
+ if(@timezone_open($tz)===false)
+ $this->settimezone(date_default_timezone_get());
+ }
}
/**load a configuration file and amend internal state by its definitions*/
# character 2: the character placed between number and currency symbol
moneynegative "-"
-#Time Zone in Olsen DB notation
+#Time Zone in Olson DB notation
# THIS VALUE SHOULD NOT BE CHANGED IN LANGUAGE FOLDERS
-# a change of this value directs MagicSmoke to show times for different time zonez
-# this value should be set to the zone where the theater is located
-timezone "Europe/Berlin"
+# a change of this value directs MagicSmoke to show times for different time zones
+# this value should be set to the zone where the theater is located;
+# if unset the system detects the local time zone on the server
+#timezone "Europe/Berlin"
+#timezone "America/New_York"