Oh, you two are the greatest, you just pointed out a runtime bug that I also have and didn't realize it. This one would have caused rare intermittent issues, and been terribly difficult to debug in production.
From: Adam Vartanian [mailto:[email protected]] Sent: Friday, March 04, 2011 4:35 AM To: Discussion of the Joda project Subject: Re: [Joda-interest] Beware of April 6, 1980 > I've detected a bug I think. I cannot create an instance of DateMidnight on > April 6, 1980 Actually, this is correct behavior, according to how Joda-Time works. There is no midnight on April 6, 1980, in the Europe/Vienna timezone. Time skipped directly from April 5, 1980, 11:59 to April 6, 1980, 1:00. If you want to represent a day in the abstract, rather than actually midnight on that day, you should use LocalDate. If you need the first instant of that day (in that timezone), you can use LocalDate.toDateTimeAtStartOfDay(). If you really need midnight on that day, you're out of luck, as it never happened. - Adam ---------------------------------------------------------------------------- -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest ________________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3479 - Release Date: 03/03/11 ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
