S
SimonWhitty88
Guest
Hi All!
After looking into an issue with a custoemr in Australia, i am wondering if i have stumbled across a bug in Windows/.Net or if i'm just missing something..
Referencing the New South Wales website, their Daylight savings period for 2018/2019 ends on 7th April 2019 at 03:00. At this point, they stop Daylight Savings (AEDT - UCT+11) and the clocks go back 1 hour (AEST - UCT+1000).
DateTime.IsDaylightSavings() method seems to return incorrectly based on date. It seems to say that the DST STARTS on 31st March 2019 whereas it started in October 2018 and should END on 7th April 2019.
You can see this by running the following 2 commands:
TimeZoneInfo.ConvertTimeFromUtc(new DateTime(2019,3,30,0,0,0, DateTimeKind.Utc), TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time")).IsDaylightSavingTime();
TimeZoneInfo.ConvertTimeFromUtc(new DateTime(2019,3,31,0,0,0, DateTimeKind.Utc), TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time")).IsDaylightSavingTime();
Please let me know if i am missing something or if this is a bug.
Continue reading...
After looking into an issue with a custoemr in Australia, i am wondering if i have stumbled across a bug in Windows/.Net or if i'm just missing something..
Referencing the New South Wales website, their Daylight savings period for 2018/2019 ends on 7th April 2019 at 03:00. At this point, they stop Daylight Savings (AEDT - UCT+11) and the clocks go back 1 hour (AEST - UCT+1000).
DateTime.IsDaylightSavings() method seems to return incorrectly based on date. It seems to say that the DST STARTS on 31st March 2019 whereas it started in October 2018 and should END on 7th April 2019.
You can see this by running the following 2 commands:
TimeZoneInfo.ConvertTimeFromUtc(new DateTime(2019,3,30,0,0,0, DateTimeKind.Utc), TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time")).IsDaylightSavingTime();
TimeZoneInfo.ConvertTimeFromUtc(new DateTime(2019,3,31,0,0,0, DateTimeKind.Utc), TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time")).IsDaylightSavingTime();
Please let me know if i am missing something or if this is a bug.
Continue reading...