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.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/php/dto/EventDTO.php b/app/php/dto/EventDTO.php
index 4a16505..b1042b1 100644
--- a/app/php/dto/EventDTO.php
+++ b/app/php/dto/EventDTO.php
@@ -15,7 +15,9 @@ class EventDTO {
$this->Location = $event->Location;
$utc = new DateTimeZone('UTC');
- $targetTz = new DateTimeZone(date_default_timezone_get());
+ $targetTz = new DateTimeZone(
+ Prado::getApplication()->getUser()->getTimezonePreference()->Name
+ );
$beginDate = new DateTime($event->BeginDate, $utc);
$endDate = new DateTime($event->EndDate, $utc);
if ($event->AllDay) {