Closed (won't fix)
Project:
Date
Version:
6.x-2.2
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2009 at 10:59 UTC
Updated:
26 Oct 2018 at 03:07 UTC
Jump to comment: Most recent
Hello,
The arg_range() function, when given a duration and an end date (e.g. P1M and 2009-06-22), will return array(2009-07-22,2009-06-22) instead of array(2009-05-22,2009-06-22).
This small patch fix that.
Cheers!
Nicolas
| Comment | File | Size | Author |
|---|---|---|---|
| date-duration-to-date.patch | 584 bytes | ndeschildre |
Comments
Comment #1
bowenzbiz commentedYes, this is what I needed.
I think it's better than change preg_match code to accept negative duration.
Comment #2
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.