projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
16349: Test token expiry using actual token validation func.
[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 fdb66415210aed9b95338f6dafc6e377de45ec50..80516521b4524f79950522325c945b22220d3538 100644
(file)
--- a/
services/api/lib/db_current_time.rb
+++ b/
services/api/lib/db_current_time.rb
@@
-8,4
+8,8
@@
module DbCurrentTime
def db_current_time
Time.parse(ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL)).to_time
end
+
+ def db_transaction_time
+ Time.parse(ActiveRecord::Base.connection.select_value('SELECT current_timestamp')).to_time
+ end
end