Closed litchie closed 8 years ago
Can you add a test for the faulty behavior? Thanks!
Thanks, @litchie. It seems we have another effort in #532 which not only fixes the timezone truncation but adds customization of DateTime for AR. I'm closing this in favor of #532.
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 our fix is to use the timezone information directly fetched from PHP DateTime object without using any formatting.