settings.php 493 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. $tmpl = new OCP\Template( 'calendar', 'settings');
  9. $timezone=OCP\Config::getUserValue(OCP\USER::getUser(),'calendar','timezone','');
  10. $tmpl->assign('timezone',$timezone);
  11. $tmpl->assign('timezones',DateTimeZone::listIdentifiers());
  12. OCP\Util::addscript('calendar','settings');
  13. return $tmpl->fetchPage();