Some additional information under which circumstances the bug occurs
would be *very* helpful. E.g. if the bug occurs only for some "exotic"
(defineable) timezones, it would be a minor problem for me (and e.g.
not require a rewrite of large parts of the code using Joda).

Just for correctness, in the sentence in my initial posting:
> Is this a bug or a defined behaviour (probably due to DST, since
> "1979-10-01T23:20:00.000-10:40" is not defined for the timezone
> above)?
it should read "1979-10-01T00:00:00.000-10:40" instead.

Walter


On 7/18/06, Stephen Colebourne <[EMAIL PROTECTED]> wrote:
> 1979-09-01 + 1 month = 1979-10-01
> so, it looks at first glance like a bug.
>
> Stephen
>
> On 18/07/06, Walter Sarka <[EMAIL PROTECTED]> wrote:
> > I have a DateTime dt.
> > dt.toString() is "1979-09-01T00:00:00.000-10:40"
> > Then I add a month: dtNew = DateTime.plusMonths(1);
> > dtNew.toString() now is "1979-09-30T23:20:00.000-10:40".
> > The joda default timezone is "Pacific/Kiritimati".
> >
> > I expected dtNew to be "1979-10-01...", as the naming plusMonths() suggests.
> >
> > Is this a bug or a defined behaviour (probably due to DST, since
> > "1979-10-01T23:20:00.000-10:40" is not defined for the timezone
> > above)?
> >
> > If it is a bug: does it only occur with "exotic" timezones or can it
> > happen at every DST transition?
> >
> > Can you give me some hints how to get "1979-10-01T..." (preferably
> > with the lowest defined time of day) for dtNew?
> > I suppose adding days till reaching October, but may be there is a far
> > better solution, since such behaviour can happen in all places where
> > adding or subtracting.
> >
> > Thanks, Walter.
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Joda-interest mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/joda-interest
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Joda-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to