Closed loicginoux closed 7 years ago
I'd say this behavior is totally ok if, by the time you did > 1.business_days.from_now
, the working day was already over (by default, a working day ends at 5 pm, if I remember correctly). Note, that 1.business_days.from_now
uses the current time as the reference, while 1.business_days.after(Date.today)
uses the current date.
If I see the time I created this issue (~7pm) it looks like it falls into this case, I didn't think about this work hours... So I'll just close the ticket. Thanks.
I have a behaviour that seems weird:
I would have expected
1.business_days.from_now.to_date == 1.business_days.after(Date.today)
is that the expected behaviour ?