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
