5383: update db_current_time to return date with more precision. Update log_test...
authorRadhika Chippada <radhika@curoverse.com>
Mon, 16 Mar 2015 22:35:58 +0000 (18:35 -0400)
committerRadhika Chippada <radhika@curoverse.com>
Mon, 16 Mar 2015 22:35:58 +0000 (18:35 -0400)
commit50e9e5553d2cc194698633753c302789ae5bb2fc
treed494775e93c7b5278526f1d79e9c4c4eb244b424
parent32926d6543e52daa4db8e47c2870bef4d6bdf71d
5383: update db_current_time to return date with more precision. Update log_test to use db_current_time instead of Time.now to ensure if there is a slight difference in time between db time and server time, the test does not fail.
services/api/lib/db_current_time.rb
services/api/test/unit/log_test.rb