This object is in archive! 

Date range bug

David Pritchard shared this problem 6 years ago
Known

An old bug has resurfaced in the Zipabox (or was never fixed?). It's been acknowledged by Zipato. Just so you know.


Date ranges (using Date between) don't work correctly. The summary is: if the starting date is in the past or is today's date and the end date is not in the future, the range is not tested correctly.


The text of my ticket:


"I set up a rule to test this (rule 248: Test Date Range). If I set the rule to test if the date is between 20.1.2018 and 21.1.2018 (today being 21st February), it fails (flips test_condition_6, indicating that the date is not in this range). If I set the rule to test whether the date is "between" 21.2.2018 and 21.8.2018 (an unusual test, but it should work), it also fails. If I set it to test 21.2.2018-22.2.2018, it succeeds. If I set a range where the starting date is in the past and the end date in the future (12.2.2018-22.2.2018), it also succeeds.


That suggests that if the starting date is in the past or is today's date and the end date is not in the future, the range is not tested correctly. (It also fails if I put the start date further back in the past, say 12.2.2018-21.2.2018)."

Replies (1)

photo
1

I suspect the reason for this is that the dates are being taken as fixed values. So 21/2/2018 is really the date-time value of 21/2/2018 00:00, which means that 21/2/2018 00:01 is outside the range when 21/2/2018 is the end date.


When the date is at the end of the range, you need to add one day.

Leave a Comment
 
Attach a file