php-activerecord
php-activerecord copied to clipboard
ActiveRecord\DateTime creation: ambiguous timezone specifier
Previously ActiveRecord::DateTime object was created from
a PHP DateTime's formatted string ('Y-m-d h:i:s T'),
T represents a 3 letter time zone abbreviation.
And unfortunately UTC+08:00 and UTC-06:00 share a
same abbr. CST.
So suggested fix is to use the timezone information directly fetched from PHP DateTime object without using any formatting.