projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '8488-cwl-crunchrunner-collection' closes #8488
[arvados.git]
/
services
/
api
/
lib
/
db_current_time.rb
1
module DbCurrentTime
2
CURRENT_TIME_SQL = "SELECT clock_timestamp()"
3
4
def db_current_time
5
Time.parse(ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL)).to_time
6
end
7
end