16349: Skip converting DB timestamps to & from localtime.
authorTom Clegg <tom@tomclegg.ca>
Mon, 27 Apr 2020 20:57:55 +0000 (16:57 -0400)
committerTom Clegg <tom@tomclegg.ca>
Tue, 28 Apr 2020 20:24:28 +0000 (16:24 -0400)
commitf98bf44508fd976cd073ba89909f70253705a5e9
treec40ccf61d438db76030f154cb4bf7abb0df8ca23
parentf4991e436219e135db96b8a9d064fdee3d39b2cd
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