We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a2969f + acbbfd6 commit 0c927f8Copy full SHA for 0c927f8
1 file changed
spec/lib/dotiw_spec.rb
@@ -13,10 +13,12 @@
13
include DOTIW::Methods
14
end
15
16
- START_TIME = '01-08-2009'.to_time
+ START_TIME = '01-08-2009'.to_time(:utc)
17
18
before do
19
I18n.locale = :en
20
+ ActiveSupport.to_time_preserves_timezone = :zone
21
+
22
allow(Time).to receive(:now).and_return(START_TIME)
23
allow(Time.zone).to receive(:now).and_return(START_TIME)
24
0 commit comments