Open alekstorm opened 6 years ago
With TZ=US/Central:
TZ=US/Central
Chronic.parse('last weekday', now: Time.local(2018, 3, 5)) # Monday => 2018-03-02 11:00:00 -0600 # previous Friday (expected) Chronic.parse('last weekday', now: Time.local(2018, 3, 12)) # Monday => 2018-03-10 11:00:00 -0600 # previous Saturday (unexpected)
With TZ=UTC:
TZ=UTC
Chronic.parse('last weekday', now: Time.local(2018, 3, 12)) # Monday => 2018-03-09 11:00:00 +0000 # previous Friday (expected)
Likely has to do with the Daylight Savings change.
probably same as #344
With
TZ=US/Central
:With
TZ=UTC
:Likely has to do with the Daylight Savings change.