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.
This commit is contained in:
grpomega 2014-03-06 10:04:53 -06:00
parent 94f99f9afc
commit c005e81426

View File

@ -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;