X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/18148ec24bf63ec3353a2cd38f6f07c460037db2..56edfaae396bd3e2c69d19425d887abe7e3bc0d5:/services/api/lib/db_current_time.rb diff --git a/services/api/lib/db_current_time.rb b/services/api/lib/db_current_time.rb index 5c97baa66e..b4a6423546 100644 --- a/services/api/lib/db_current_time.rb +++ b/services/api/lib/db_current_time.rb @@ -2,6 +2,6 @@ module DbCurrentTime CURRENT_TIME_SQL = "SELECT clock_timestamp()" def db_current_time - ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL).to_time + Time.parse(ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL)).to_time end end