Open Bug 605761 Opened 14 years ago Updated 11 years ago

Relative dates do not accept decimal numbers (e.g. 2d works, but 2.5d doesn't)

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
minor

Tracking

()

People

(Reporter: baffclan, Unassigned)

References

()

Details

Search By Change History
input illegal Date 
(eg, between '2.5d' - 'Now')

Actual Results :
active(?) bugs list

Expected Results :
Error message '-2.5d' is not a legal date.
bugzilla-tip/version 4.1 : bug list
bugzilla-tip-pg/version 4.1 : Software error
bugzilla-tip-oracle/version 4.1 : Software error
bugzilla-4.0-branch/version 3.7.3+ : good!
Okay, thanks for the report. Technically, in that case there's no difference between -2.5d and 2.5d. 2.5d means "2.5 days ago".
(In reply to comment #2)
Sorry, miss type...

https://bugzilla.mozilla.org/buglist.cgi?chfieldto=Now&query_format=advanced&chfield=[Bug%20creation]&chfieldfrom=2.5d

Expected Results :
Error message '2.5d' is not a legal date.
               ~~~~
Assignee: query-and-buglist → hugo.seabrook
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
This bug is still not fixed and is unrelated to bug 533878. The problem is that relative dates only accept integers (e.g. "2d"), but not decimal numbers (e.g. "2.5d"). A workaround is to write 60h instead of 2.5d.
Assignee: hugo.seabrook → query-and-buglist
Severity: normal → minor
Status: RESOLVED → REOPENED
OS: Windows XP → All
Hardware: x86 → All
Resolution: DUPLICATE → ---
Summary: Illegal Date search on version 4.1 → Relative dates do not accept decimal numbers (e.g. 2d works, but 2.5d doesn't)
Status: REOPENED → NEW
You need to log in before you can comment on or make changes to this bug.