diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-21 00:45:13 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-07-21 00:45:30 +0200 |
commit | 060b8865a4701cfe400e424765031c219330fa1a (patch) | |
tree | 3a0ac9c0e2f370f1fbcb0d584733b280651413ee /apps/tasks/ajax/gettasks.php | |
parent | 1c30a97833235e585528da288d20663f65ac25b3 (diff) | |
download | nextcloud-server-060b8865a4701cfe400e424765031c219330fa1a.tar.gz nextcloud-server-060b8865a4701cfe400e424765031c219330fa1a.zip |
DRY for getting calendar timezone setting
Diffstat (limited to 'apps/tasks/ajax/gettasks.php')
-rw-r--r-- | apps/tasks/ajax/gettasks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tasks/ajax/gettasks.php b/apps/tasks/ajax/gettasks.php index 011730d0a13..b6183d9cb65 100644 --- a/apps/tasks/ajax/gettasks.php +++ b/apps/tasks/ajax/gettasks.php @@ -11,7 +11,7 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('tasks'); $calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true); -$user_timezone = OCP\Config::getUserValue(OCP\User::getUser(), 'calendar', 'timezone', date_default_timezone_get()); +$user_timezone = OC_Calendar_App::getTimezone(); $tasks = array(); foreach( $calendars as $calendar ){ |