On 08/27/2013 11:52 AM, Karen Etheridge wrote:
> On Tue, Aug 27, 2013 at 10:02:41AM +0100, David Pottage wrote:
>> I have had a peek at the source code for from_datetime_and_duration(), 
>> and it looks like it always adds the duration to the supplied DateTime 
>> regardless of weather it is supplied as a start or end.
>> Is this a bug? I can supply a test case or patch if necessary.
> 
> That sounds like a bug to me -- either the API shouldn't accept an end at
> all (should always require the caller to calculate the start), or it should
> apply the duration into the past when 'end' is provided rather than
> 'start'.

Agreed.

   Mark


Reply via email to