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
require 'timecop'
Timecop.freeze '2014-03-10 12:30' # Daylight savings time
Chronic.time_class = ActiveSupport::TimeZone.new(-8)
Chronic.parse("7 days ago at 00:00") #=> Mon, 03 Mar 2014 23:00:00 PST -08:00 # Not Daylight savings time
It seems like Tues, 04 Mar 2014 00:00:00 is the appropriate answer
The text was updated successfully, but these errors were encountered:
Here is a code snippet that demonstrates:
It seems like
Tues, 04 Mar 2014 00:00:00
is the appropriate answerThe text was updated successfully, but these errors were encountered: