You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in the Timezone GMT+1 and last saturday occured the change from summertime to wintertime. After that one of my tests stopped working. The test looks like this:
context 'format for 10 days 23 hours 15 minutes 30 seconds' do
let(:tnow) { Time.now }
let(:tdiff) { tnow - (tnow - 10.days - 23.hours - 15.minutes - 30.seconds ) }
it 'returns the correct format' do
expect(ChronicDuration.output(tdiff, :format => :short)).to eq('10d 23h 15m 30s')
end
end
The error is
expected: "10d 23h 15m 30s"
got: "11d 15m 30s"
So I suppose this is a problem with the daylight saving. Is there a possibility to circumvent this error?
Thanks in advance
Rudolf Fäder
The text was updated successfully, but these errors were encountered:
Hello,
I am in the Timezone GMT+1 and last saturday occured the change from summertime to wintertime. After that one of my tests stopped working. The test looks like this:
The error is
expected: "10d 23h 15m 30s"
got: "11d 15m 30s"
So I suppose this is a problem with the daylight saving. Is there a possibility to circumvent this error?
Thanks in advance
Rudolf Fäder
The text was updated successfully, but these errors were encountered: