Thread:Project:Support desk/Upgrade Wiki from 1.18 to 1.22.4 (2)/reply (5)

Bellow is the Timezone function in Localsettings.php:

$wgLocaltimezone = "America/Los_Angeles"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 60; putenv("TZ=$oldtz");
 * 1) Set Default Timezone
 * 1) Versions before 1.7.0 used $wgLocalTZoffset as hours.
 * 2) After 1.7.0 offset as minutes

$wgLocaltimezone = "Asia/Jerusalem";

You think I have to delete this function? Doesn't it adapt the time to the reigion I live in?