projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '7846-magic-invalidate-entry' closes #7846
[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 ef68b0d09a9d913fa364b07390df7e4f81001743..b4a642354626f461e99699fb1203e224bd5122c2 100644
(file)
--- a/
services/api/lib/db_current_time.rb
+++ b/
services/api/lib/db_current_time.rb
@@
-1,5
+1,5
@@
module DbCurrentTime
- CURRENT_TIME_SQL = "SELECT
CURRENT_TIMESTAMP
"
+ CURRENT_TIME_SQL = "SELECT
clock_timestamp()
"
def db_current_time
Time.parse(ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL)).to_time