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

Submitted by:  Alex Manoussakis <amanou>
Submitted on:  Mon 29 Feb 2016 11:29:59 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Alex Manoussakis <amanou>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
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
  • -unavailable- added by amanou (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Feb 2016 11:55:24 PM UTCamanouStatusIn Progress=>Fixed
    Mon 29 Feb 2016 11:30:23 PM UTCamanouStatusNone=>In Progress
    Mon 29 Feb 2016 11:29:59 PM UTCamanouAttached File-=>Added getdate.y.diff, #36515

    Back to the top


    Powered by Savane 3.1-cleanup1