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
When calculating 0.business_days.from_now on a Sunday, I am given Tuesday. But then if I run 0.business_days.from_now again before the start of business on Monday, I am finally given Monday..
When calculating 0.business_days.from_now on a Sunday, I am given Tuesday. But then if I run 0.business_days.from_now again before the start of business on Monday, I am finally given Monday..
Run on Sunday afternoon:
[1] pry(main)> 1.business_day.from_now
=> Wed, 17 Aug 2016 09:00:00 EDT -04:00
[2] pry(main)> 0.business_day.from_now
=> Tue, 16 Aug 2016 09:00:00 EDT -04:00
[3] pry(main)> 0.business_day.ago
=> Fri, 12 Aug 2016 09:00:00 EDT -04:00
[4] pry(main)> 1.business_day.ago
=> Thu, 11 Aug 2016 09:00:00 EDT -04:00
Run on Monday at 8 am EDT:
[5] pry(main)> 0.business_day.from_now
=> Mon, 15 Aug 2016 09:00:00 EDT -04:00
[6] pry(main)> 1.business_day.from_now
=> Tue, 16 Aug 2016 09:00:00 EDT -04:00
The text was updated successfully, but these errors were encountered: