From a43e887c380fc414121792658136a34051526b6a Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 15:40:50 +0200 Subject: * DbUser refactored to use a facade --- app/php/dto/EventDTO.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/php/dto/EventDTO.php') 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); -- cgit v1.2.3