buggnats - Bugs: bug #47311, date queries with "1 year...

 
 

bug #47311: date queries with "1 year ago" don't work when today is February 29

Submitter:  Alex Manoussakis <amanou>
Submitted:  Mon 29 Feb 2016 11:29:59 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  amanou Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 29 Feb 2016 11:55:24 PM UTC, comment #1: 

Fix committed:
/sources/gnats/gnats/gnats/getdate.y,v  <--  gnats/getdate.y
new revision: 1.11; previous revision: 1.10

Alex Manoussakis <amanou>
Group administrator
Mon 29 Feb 2016 11:29:59 PM UTC, original submission:  

date queries with "1 year ago" don't work when today is February 29, because in getdate.y the RelativeMonth function tries to pass February 29 2015 into the Convert function, which returns -1 since that date is invalid. For relative calculations we should make it pass (and let it evaluate as March 1st 2015).


Alex Manoussakis <amanou>
Group administrator

 

Attached Files

Attached Files
file #36515:  getdate.y.diff added by amanou (1.6KiB - text/x-patch - Attaching patch to fix)

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by amanou (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-29 amanou StatusIn Progress Fixed
    2016-02-29 amanou StatusNone In Progress
    2016-02-29 amanou Attached File- Added getdate.y.diff, #36515

    Back to the top

    Powered by Savane 3.16-27d0.
    Corresponding source code