projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
8008: Add dependencies on libcurl and postgresql dev packages in order to build
[arvados.git]
/
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 5c97baa66e0a217b178d66cb16c35bc446395ed8..b4a642354626f461e99699fb1203e224bd5122c2 100644
(file)
--- 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