Happy new year everybody! May this new year be a good one for you!

I like coming back to the office first day of the year. Because it brings every year some nice unit test failures. This is the one of this year:
Existing Test Case Failures

Test Suite Test Case
DateTimeTest Date time gregorian calendar
Set time and date gregorian calendar


java.lang.IllegalArgumentException: Given month 0 is not supported.
  at foo.bar.baz.DateTime.setMonth(DateTime.java:650)

Guys, here my new years advice: If you ever find yourself creating unit tests for date and time handling classes, either be really sure you only used fixed dates for this, OR you test your unit test also by setting your computer to first and last day of the year and see if it still works. And while doing so, set it to one day before DST and after DST change.

I am going to fix this now. see ya!