5383: update db_current_time to return date with more precision. Update log_test...
[arvados.git] / services / api / lib / db_current_time.rb
1 module DbCurrentTime
2   CURRENT_TIME_SQL = "SELECT CURRENT_TIMESTAMP"
3
4   def db_current_time
5     ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL).to_time
6   end
7 end