From: Bart Visscher Date: Thu, 6 Oct 2011 09:14:07 +0000 (+0200) Subject: Implement timezone fix from Stephen Rees-Carter X-Git-Tag: v3.0~101^2~2^2^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c28f1e0276bef100b88b4df0bd8f2a0d7d888314;p=nextcloud-server.git Implement timezone fix from Stephen Rees-Carter --- diff --git a/apps/calendar/templates/settings.php b/apps/calendar/templates/settings.php index 19a1a543b46..913e54dd8fc 100644 --- a/apps/calendar/templates/settings.php +++ b/apps/calendar/templates/settings.php @@ -16,16 +16,18 @@ OC_UTIL::addStyle('', 'jquery.multiselect'); '; - echo ''; - endif; - $city=$ex[1]; - $continent=$ex[0]; - echo ''; + $ex=explode('/', $timezone, 2);//obtain continent,city + if (!isset($ex[1])) { + $ex[1] = $ex[0]; + $ex[0] = "Other"; + } + if ($continent!=$ex[0]): + if ($continent!="") echo ''; + echo ''; endif; + $city=$ex[1]; + $continent=$ex[0]; + echo ''; endforeach;?>