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

CommentFileSizeAuthor
date-duration-to-date.patch584 bytesndeschildre

Comments

bowenzbiz’s picture

Yes, this is what I needed.

I think it's better than change preg_match code to accept negative duration.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately 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.