X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/beebf2cbe5edc986e1a268fabdd10a3f710dedd4..2b34839cdf95291a7356554e05e50b9ced177dd6:/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