16349: Skip converting DB timestamps to & from localtime.
authorTom Clegg <tom@tomclegg.ca>
Mon, 27 Apr 2020 20:57:55 +0000 (16:57 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 8 Jun 2020 18:58:18 +0000 (14:58 -0400)
commit04e3809b09008c4009a9bc74120952d753244884
treee1967e30ba0c19e010f67e79c0169f33f48dc85e
parent15f61e8bce0d67014f02852a05bc462e09b80435
16349: Skip converting DB timestamps to & from localtime.

The previous code already returned the correct time. This change
merely avoids converting the time to the local time zone in
PostgreSQL, and back to UTC again in Rails.

This might also avoid rare problems in unusual edge cases where Rails
and PostgreSQL session use different time zones, like a configuration
mishap or a race during a daylight savings time transition.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
services/api/lib/db_current_time.rb