mono/mono — pull request #800 by alistair (2013-11-07 09:03:47+00:00)
Title: Southern Hemisphere timezone fix

As I raised on the mono-dev mailing list [1] DateTime.Now.IsDaylightSavingTIme() was returning false when in fact this should be true.

I was able to track this down to the fact the icall.c assumes the daylight savings starts before it ends within a given year.

This patch changes icall to be able to calculate the start and end 'datetimes' in both the northern and southern hemispheres. I have tested this by changing my system timezone to each of the TimeZoneTest.cs time zones which are tested.

While I am reasonably confident the code works, I am not a c programmer by any stretch of the imagination and therefore would welcome any feedback.

[1] http://lists.ximian.com/pipermail/mono-devel-list/2013-October/040912.html