]> git.openstreetmap.org Git - rails.git/commit
Make the AMF getway_old call parse times as UTC
authorTom Hughes <tom@compton.nu>
Fri, 1 Dec 2017 19:21:42 +0000 (19:21 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 1 Dec 2017 19:24:26 +0000 (19:24 +0000)
commitfe2e215d146439b4b837d9cc97ac3ac1a4cb8fe2
tree0a2dd9f7d34f72f55e64adb2a47a3bac46f3f429
parent1045b405ae724945b882404df45d973d6ea777a6
Make the AMF getway_old call parse times as UTC

Although it's not entirely clear how to interpret a timestamp from
a client the production servers have effectively been parsing them
as UTC because they run in the UTC time zone all year.

Using Time.zone to do the parse forces it to happen in the rails time
zone rather than the system time zone, which defaults to UTC as well.

Fixes #1688
app/controllers/amf_controller.rb