Skip to content

Commit

Permalink
Merge pull request GOCDB#479 from GOCDB/469-removing-default-timezone…
Browse files Browse the repository at this point in the history
…-in-sampledata-deploy-scripts

[GT-201] Give sample data sites their correct timezone, instead of UTC by default
  • Loading branch information
gregcorbett committed Sep 14, 2023
2 parents 643461f + e417f5c commit 846f49d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Doctrine/deploy/AddSites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 846f49d

Please sign in to comment.