מדיה ויקי:DefaultSettings.php

מתוך איןציקלופדיה
קפיצה לניווט קפיצה לחיפוש

<?php

Set Default Timezone $wgLocaltimezone = "israel"; date_default_timezone_set( $wgLocaltimezone ); $+3wgLocaltimezone = "UTC"; $wgLocaltimezone = "israel"; $wgLocaltimezone = "israel"; $wgLocaltimezone = "israel"; $dtz = new DateTimeZone($wgLocaltimezone); $dt = new DateTime('now', $dtz); $wgLocalTZoffset = $dtz->getOffset($dt) / 60; unset($dtz); unset($dt); $wgLocalTZoffset = date("Z") / 60; $wgLocalTZoffset = 13 * 60; $wgLocaltimezone="israel"; $wgLocalTZoffset = +120;

Set Default Timezone $wgLocaltimezone = "israel";

Calculate the timezone offset with UTC $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 60 + date("I") * 60; putenv("TZ=$oldtz"); $wgLocaltimezone = "israel";

Calculate the timezone offset with UTC $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 3600; putenv("TZ=$oldtz"); $wgDefaultUserOptions['timecorrection'] = 'ZoneInfo|' . (date("I") ? 120 : 60) . '|israel'; $wgLocaltimezone = "CET-1CEST-2,M3.5.0/2,M10.5.0/2";

$wgLocaltimezone = "israel"; $wgLocaltimezone = "AEST-9,M10.5.0/3,M4.1.0/3"; $wgLocaltimezone = "israel";