bebanjo / delorean

DISCONTINUED - Delorean lets you travel in time with Ruby by mocking Time.now
MIT License
454 stars 25 forks source link

Miliseconds lost on DateTime #19

Open Holek opened 11 years ago

Holek commented 11 years ago

Due to the implementation of now method milliseconds are lost when using Delorean.

$ rails console
ruby-1.9.3-p125-perf :001 > DateTime.now.strftime("%L")
 => "462" 
ruby-1.9.3-p125-perf :002 > DateTime.now.strftime("%L")
 => "175" 
ruby-1.9.3-p125-perf :003 > require 'delorean'
 => true 
ruby-1.9.3-p125-perf :004 > DateTime.now.strftime("%L")
 => "000" 
schorsch commented 11 years ago

+1