setNumberFormat(s.decimaldot().value().at(0),s.thousandseparator().value().at(0),s.thousanddigits().value());
setAP(s.amtext(),s.pmtext());
setTimeZone(s.timezone());
+ setDateTimeFormat(s.dateformat(),s.timeformat(),s.datetimeformat());
}
bool needsRefund()const{return amountpaid()>totalprice();}
bool isSent()const{return status()==Sent;}
bool isReservation()const{return status()==Reserved;}
+ bool isCancelled()const{return status()==Cancelled;}
};
#endif
\ No newline at end of file
parent::__construct();
global $template;
$this->loadConfig($template."/format.cfg");
- if($lang!="" && preg_match('/^[a-zA-Z0-9_-]+$/',$lang))
+ if($lang!="" && $lang!="C" && preg_match('/^[a-zA-Z0-9_-]+$/',$lang))
$this->loadConfig($template."/".$lang."/format.cfg");
//check timezone
$tz=$this->gettimezone();
# %Z milli-seconds as three digit number (eg. 007)
# %p "am" or "pm" according to current time, this is the one set with setAP
# %P "AM" or "PM" according to current time, this is toUpper executed on the one set with setAP
-# %T ISO timezone as +/-hhmm (eg. -0100 or +0100) - does not work reliably on all systems
+# %T ISO timezone as +/-hhmm (eg. -0100 or +0100)
+# %t ISO timezone as +/-hh:mm (eg. -01:00 or +01:00)
+# %O Olson name of the time zone (eg. "Europe/Berlin")
+# %o abbreviated local name of the time zone (eg. "CET", "CEST")
# %% a single % sign
-time "%h:%I"
+time "%h:%I %t"
#The format used for expressing a date:
# %y two-digit year (eg. 08)
#The format used when full date and time display is requested,
# see date and time above for the format codes
-datetime "%Y-%M-%D %h:%I"
+datetime "%Y-%M-%D %h:%I %t"
#the text used for AM and PM in time displays that include them
# use the uppercase version here, lowercase is done automatically
# 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 "Europe/Berlin"
#timezone "America/New_York"