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
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  amanou
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    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.14-f13d.
    Corresponding source code