ILIAS
release_8 Revision v8.19
|
This class offers methods for timezone handling. More...
Public Member Functions | |
__sleep () | |
__wakeup () | |
getIdentifier () | |
switchTZ () | |
Switch timezone to given timezone. More... | |
restoreTZ () | |
Restore default timezone. More... | |
validateTZ () | |
Static Public Member Functions | |
static | _getInstance (string $a_tz='') |
get instance by timezone More... | |
static | _setDefaultTimeZone (string $a_tz) |
static | _restoreDefaultTimeZone () |
static | _getDefaultTimeZone () |
Calculate and set default time zone. More... | |
static | initDefaultTimeZone (ilIniFile $ini) |
Initialize default timezone from system settings. More... | |
Data Fields | |
const | UTC = 'UTC' |
Static Public Attributes | |
static array | $instances = array() |
static array | $valid_tz = array() |
Static Protected Member Functions | |
static | _switchTimeZone (string $a_timezone) |
Protected Attributes | |
ilLogger | $log |
string | $timezone = "UTC" |
Static Protected Attributes | |
static string | $default_timezone = '' |
static string | $current_timezone = '' |
static string | $server_timezone = '' |
Private Member Functions | |
__construct (string $a_timezone) | |
Create new timezone object If no timezone is given, the default server timezone is chosen. More... | |
This class offers methods for timezone handling.
ilTimeZone::_getDefault
tries to "guess" the server timezone in the following manner: 1) PHP >= 5.2.0 use date_default_timezone_get
2) Read ini option date.timezone if available 3) Read environment PHP_TZ 4) Read environment TZ 5) Use date('T')
6) Use UTC
Definition at line 38 of file class.ilTimeZone.php.
|
private |
Create new timezone object If no timezone is given, the default server timezone is chosen.
Definition at line 56 of file class.ilTimeZone.php.
References $DIC.
ilTimeZone::__sleep | ( | ) |
Definition at line 77 of file class.ilTimeZone.php.
ilTimeZone::__wakeup | ( | ) |
|
static |
Calculate and set default time zone.
Definition at line 201 of file class.ilTimeZone.php.
Referenced by ilObjCalendarSettingsGUI\initFormSettings(), and ilCalendarSettings\read().
|
static |
get instance by timezone
ilTimeZoneException |
Definition at line 97 of file class.ilTimeZone.php.
Referenced by ilDate\__construct(), ilICalParser\__construct(), ilDateTime\__construct(), ilCalendarRecurrenceCalculator\applyBYMONTHDAYRules(), ilDateTime\get(), ilICalParser\getTZ(), ilDateTime\switchTimeZone(), and ilUserImportParser\verifyPref().
|
static |
Definition at line 192 of file class.ilTimeZone.php.
Referenced by ilCalendarRecurrenceCalculator\calculateDateList().
|
static |
Definition at line 183 of file class.ilTimeZone.php.
Referenced by ilCalendarRecurrenceCalculator\adjustTimeZones().
|
staticprotected |
Definition at line 156 of file class.ilTimeZone.php.
References $DIC.
ilTimeZone::getIdentifier | ( | ) |
Definition at line 88 of file class.ilTimeZone.php.
References $timezone.
Referenced by ilDateTime\get(), and ilICalParser\switchTZ().
|
static |
Initialize default timezone from system settings.
Definition at line 232 of file class.ilTimeZone.php.
References ilIniFile\readVariable().
Referenced by ilInitialisation\initIliasIniFile().
ilTimeZone::restoreTZ | ( | ) |
Restore default timezone.
Definition at line 135 of file class.ilTimeZone.php.
References Vendor\Package\$e.
Referenced by validateTZ().
ilTimeZone::switchTZ | ( | ) |
Switch timezone to given timezone.
Definition at line 120 of file class.ilTimeZone.php.
Referenced by ilICalParser\switchTZ(), and validateTZ().
ilTimeZone::validateTZ | ( | ) |
Definition at line 147 of file class.ilTimeZone.php.
References restoreTZ(), and switchTZ().
|
staticprotected |
Definition at line 46 of file class.ilTimeZone.php.
|
staticprotected |
Definition at line 45 of file class.ilTimeZone.php.
|
static |
Definition at line 42 of file class.ilTimeZone.php.
|
protected |
Definition at line 49 of file class.ilTimeZone.php.
|
staticprotected |
Definition at line 47 of file class.ilTimeZone.php.
|
protected |
Definition at line 50 of file class.ilTimeZone.php.
Referenced by getIdentifier().
|
static |
Definition at line 43 of file class.ilTimeZone.php.
const ilTimeZone::UTC = 'UTC' |
Definition at line 40 of file class.ilTimeZone.php.
Referenced by ilDate\__construct(), ilObjCourse\__readSettings(), ilCalendarCategory\add(), ilCalendarExport\addCategories(), ilCalendarRecurrenceCalculator\adjustTimeZones(), ilCalendarUtil\convertDateToUtcDBTimestamp(), ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilExportFileInfo\create(), ilCalendarExport\createVEVENT(), ilEmployeeTalkAppointmentGUI\deleteTalks(), ilEmployeeTalkAppointmentGUI\editAppointment(), ilConsultationHourUtils\findCalendarAppointmentsForBooking(), ilObjCourse\findCoursesWithNotEnoughMembers(), ilObjGroup\findGroupsWithNotEnoughMembers(), ilCalendarUserSettings\getExportTimeZone(), ilAdvancedMDFieldDefinitionDateTime\getLuceneSearchString(), ilTrQuery\getSessionData(), ilECSTimePlace\getUTBegin(), ilECSTimePlace\getUTEnd(), ilObjEmployeeTalkSeriesGUI\loadRecurrenceSettings(), ilEmployeeTalkAppointmentGUI\loadRecurrenceSettings(), ilBookingEntry\lookupBookingsForObject(), ilObjectCustomUserFieldHistory\lookupEntriesByObjectId(), ilSCTasks\lookupLastUpdate(), ilObjGroupAccess\lookupPeriodInfo(), ilObjCourseAccess\lookupPeriodInfo(), ILIAS\Modules\EmployeeTalk\Talk\Repository\IliasDBEmployeeTalkRepository\parseFromStdClass(), ilContainerXmlParser\parseTiming(), ilSCGroup\read(), ilSCTask\read(), ilObjectCustomUserFieldHistory\read(), ilExportFileInfo\read(), ilObjGroup\read(), ilDateList\removeByDAY(), ilConsultationHourCron\run(), ilObjectCustomUserFieldHistory\save(), ilCalendarEntry\save(), ilECSTimePlace\setBegin(), ilECSTimePlace\setEnd(), ilCalendarRecurrenceExclusion\toICal(), ilSCTask\update(), ilCalendarCategory\update(), ilCalendarEntry\update(), and ilContainerXmlWriter\writeCourseItemInformation().