From c005e814268650b2fe958896b84726bb93fbdef1 Mon Sep 17 00:00:00 2001 From: grpomega Date: Thu, 6 Mar 2014 10:04:53 -0600 Subject: [PATCH] Need Week instead of Day for TZ transistion transistion.Day is being pulled and assigned to the DST transition times instead of the week of transition. This gives the wrong date for DST implementation. Pull request #1713 can be killed if libfreerdp/locale/timezone.c can be regenerated form the file resulting from the execution of this script. All implementations of DST appear to be calculated rather than specific. http://www.webexhibits.org/daylightsaving/g.html so transistion.Day should never be relevant. --- scripts/TimeZones.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/TimeZones.cs b/scripts/TimeZones.cs index d8b0d9edd..80a1550d9 100644 --- a/scripts/TimeZones.cs +++ b/scripts/TimeZones.cs @@ -141,7 +141,7 @@ namespace TimeZones tzr.StandardDate.wYear = (UInt16)0; tzr.StandardDate.wMonth = (UInt16)transition.Month; tzr.StandardDate.wDayOfWeek = (UInt16)transition.DayOfWeek; - tzr.StandardDate.wDay = (UInt16)transition.Day; + tzr.StandardDate.wDay = (UInt16)transition.Week; tzr.StandardDate.wHour = (UInt16)time.Hour; tzr.StandardDate.wMinute = (UInt16)time.Minute; tzr.StandardDate.wSecond = (UInt16)time.Second; @@ -153,7 +153,7 @@ namespace TimeZones tzr.DaylightDate.wYear = (UInt16)0; tzr.DaylightDate.wMonth = (UInt16)transition.Month; tzr.DaylightDate.wDayOfWeek = (UInt16)transition.DayOfWeek; - tzr.DaylightDate.wDay = (UInt16)transition.Day; + tzr.DaylightDate.wDay = (UInt16)transition.Week; tzr.DaylightDate.wHour = (UInt16)time.Hour; tzr.DaylightDate.wMinute = (UInt16)time.Minute; tzr.DaylightDate.wSecond = (UInt16)time.Second;