[Pharo-project] Fwd: [Seaside] Timespan bug
stephane.ducasse at inria.fr
Tue Jun 17 02:45:34 EDT 2008
Begin forwarded message:
> From: "David T. Lewis" <lewis at mail.msen.com>
> Date: June 17, 2008 2:50:58 AM CEDT
> To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
> Subject: Re: [Seaside] Timespan bug
> Reply-To: Seaside - general discussion <seaside at lists.squeakfoundation.org
> On Mon, Jun 16, 2008 at 01:50:43PM +1000, Steve Aldred wrote:
>> Sorry for posting this here but I don't use Squeak itself and hence
>> aren't on the main squeak list.
>> As a VW Seaside user I do use Squeak extensions. There is a bug in
>> Timespan as shown below:
>> (Year starting: (DateAndTime year: 2008 month: 1 day:1)) previous
>> The result should be 2007 but it returns 2006.
>> Year should implement previous the same as Month does.
> Thanks for reporting this issue. I was going to enter a report on your
> behalf in the Squeak bug tracking system, but it looks like Brent is
> already on top of it :)
> The bug report includes a proposed fix, which is straightforward if
> want to include it in your image:
> Brent's fix is as follows:
> "This implementation handles leap years correctly"
> ^ self class year: (self year - 1)
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the Pharo-dev