summaryrefslogtreecommitdiff
path: root/app/php/dto
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 15:40:50 +0200
committeremkael <emkael@tlen.pl>2016-05-06 15:40:50 +0200
commita43e887c380fc414121792658136a34051526b6a (patch)
tree1816ec713671d02dd3d24e92c2f4675f7deab30d /app/php/dto
parent5bfe174b5907440a4f08bd45fd9c384ab5c58037 (diff)
* DbUser refactored to use a facade
Diffstat (limited to 'app/php/dto')
-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);