diff options
author | Georg Ehrke <ownclouddev@georgswebsite.de> | 2011-11-11 15:51:44 +0100 |
---|---|---|
committer | Georg Ehrke <ownclouddev@georgswebsite.de> | 2011-11-11 15:51:44 +0100 |
commit | 26272c42525e63fedcf2b35d3d875fbec860eae1 (patch) | |
tree | b6b2bbc425528c4049bd05ff8ee06ab7ff3c3b63 /apps/calendar/index.php | |
parent | b095859a928a29bcb738dd820fb13dd57495c8d0 (diff) | |
download | nextcloud-server-26272c42525e63fedcf2b35d3d875fbec860eae1.tar.gz nextcloud-server-26272c42525e63fedcf2b35d3d875fbec860eae1.zip |
automatic timezone detection
Diffstat (limited to 'apps/calendar/index.php')
-rw-r--r-- | apps/calendar/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/calendar/index.php b/apps/calendar/index.php index e5326d26e97..3313750d52e 100644 --- a/apps/calendar/index.php +++ b/apps/calendar/index.php @@ -32,6 +32,9 @@ if(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'mont OC_Util::addScript('3rdparty/fullcalendar', 'fullcalendar'); OC_Util::addStyle('3rdparty/fullcalendar', 'fullcalendar'); +if(OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone") == null){ + OC_UTIL::addScript('calendar', 'geo'); +} OC_Util::addScript('calendar', 'calendar'); OC_Util::addStyle('calendar', 'style'); OC_Util::addScript('', 'jquery.multiselect'); @@ -39,4 +42,4 @@ OC_Util::addStyle('', 'jquery.multiselect'); OC_App::setActiveNavigationEntry('calendar_index'); $tmpl = new OC_Template('calendar', 'calendar', 'user'); $tmpl->assign('eventSources', $eventSources); -$tmpl->printPage(); +$tmpl->printPage();
\ No newline at end of file |