diff options
author | emkael <emkael@tlen.pl> | 2016-05-06 15:40:50 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-06 15:40:50 +0200 |
commit | a43e887c380fc414121792658136a34051526b6a (patch) | |
tree | 1816ec713671d02dd3d24e92c2f4675f7deab30d /app/php/dto | |
parent | 5bfe174b5907440a4f08bd45fd9c384ab5c58037 (diff) |
* DbUser refactored to use a facade
Diffstat (limited to 'app/php/dto')
-rw-r--r-- | app/php/dto/EventDTO.php | 5 |
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); |