$timezone = (float)$USER->timezone;
}
}
- if (abs($timezone) > 12) {
+ if (abs($timezone) > 13) {
return strftime("$format", $date);
}
return gmstrftime($format, $date + (int)($timezone * 3600));
if ($timezone == 99) {
$timezone = (float)$USER->timezone;
}
- if (abs($timezone) > 12) {
+ if (abs($timezone) > 13) {
return getdate($date);
}
//There is no gmgetdate so I have to fake it...
if ($timezone == 99) {
$timezone = (float)$USER->timezone;
}
- if (abs($timezone) > 12) {
+ if (abs($timezone) > 13) {
return $date;
}
return $date - (int)($timezone * 3600);
$userdate = usergetdate($date, $timezone);
- if (abs($timezone) > 12) {
+ if (abs($timezone) > 13) {
return mktime(0, 0, 0, $userdate["mon"], $userdate["mday"], $userdate["year"]);
}
if ($timezone == 99) {
$timezone = (float)$USER->timezone;
}
- if (abs($timezone) > 12) {
+ if (abs($timezone) > 13) {
return "server time";
}
if (abs($timezone) < 0.5) {
<tr valign=top>
<td><P><? print_string("timezone") ?>:</td>
<td><?
- if (abs($user->timezone) > 12) {
+ if (abs($user->timezone) > 13) {
$user->timezone = 99;
}
$timenow = time();
- for ($tz = -23; $tz <= 24; $tz++) {
+ for ($tz = -26; $tz <= 26; $tz++) {
$zone = (float)$tz/2.0;
$usertime = $timenow + ($tz * 1800);
if ($tz == 0) {