Fixed
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
John Berquist
John BerquistPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 28 May 2020 at 20:15
Updated 4 March 2021 at 15:22
Resolved 4 March 2021 at 15:22
When a datasource is defined in Application.cfc via `this.datasources` it will always have its timezone property set, even when it is not specified in the config struct. This is different behavior than when a datasource is specified in the admin where when the timezone is not specified, the datasource has a null value for its timezone.
This particularly caused me confusion because the datasource specified via application.cfc with no timezone will get the timezone of the server Lucee is running on, even if the timezone specified for Lucee is different. I believe this is happening because a null or missing timzone key in the config struct is not treated as null, but as an empty string - and there is an entry in TimeZoneUtil.java for an empty string: