From e417f5c255f6e9fc59fb4f3bb6b80be7b894a1f8 Mon Sep 17 00:00:00 2001 From: rowan04 Date: Wed, 13 Sep 2023 08:49:41 +0000 Subject: [PATCH] Give sample data sites their correct timezone, instead of UTC by default - change to use the timzeone provided in the site xml, instead of utc by default --- lib/Doctrine/deploy/AddSites.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/deploy/AddSites.php b/lib/Doctrine/deploy/AddSites.php index bb2210ad8..c6640e32a 100644 --- a/lib/Doctrine/deploy/AddSites.php +++ b/lib/Doctrine/deploy/AddSites.php @@ -34,6 +34,7 @@ $doctrineSite->setEmail((string) $xmlSite->CONTACT_EMAIL); $doctrineSite->setTelephone((string) $xmlSite->CONTACT_TEL); $doctrineSite->setGiisUrl((string) $xmlSite->GIIS_URL); + $doctrineSite->setTimezoneId((string) $xmlSite->TIMEZONE); if(strlen((string)$xmlSite->LATITUDE) > 0){ $doctrineSite->setLatitude((float)$xmlSite->LATITUDE); } @@ -116,8 +117,6 @@ } $doctrineSite->setCountry($country); - $doctrineSite->setTimezoneId('UTC'); - // get the Tier (optional value) $dql = "SELECT t FROM Tier t WHERE t.name = ?1";