summaryrefslogtreecommitdiff
path: root/app/php/dto/EventDTO.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/dto/EventDTO.php')
-rw-r--r--app/php/dto/EventDTO.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/php/dto/EventDTO.php b/app/php/dto/EventDTO.php
index b1042b1..856bcd5 100644
--- a/app/php/dto/EventDTO.php
+++ b/app/php/dto/EventDTO.php
@@ -2,6 +2,7 @@
Prado::using('Application.model.Entry');
Prado::using('Application.dto.CalendarDTO');
+Prado::using('Application.facades.UserFacade');
class EventDTO {
@@ -16,7 +17,9 @@ class EventDTO {
$utc = new DateTimeZone('UTC');
$targetTz = new DateTimeZone(
- Prado::getApplication()->getUser()->getTimezonePreference()->Name
+ UserFacade::getInstance()->getTimezonePreference(
+ Prado::getApplication()->getUser()
+ )->Name
);
$beginDate = new DateTime($event->BeginDate, $utc);
$endDate = new DateTime($event->EndDate, $utc);