From c28f1e0276bef100b88b4df0bd8f2a0d7d888314 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 6 Oct 2011 11:14:07 +0200 Subject: [PATCH] Implement timezone fix from Stephen Rees-Carter --- apps/calendar/templates/settings.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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;?> -- 2.39.5