[Solved] Adding KB972423 using TZChange.exe

Questions about Update Pack making? Ask here.
Post Reply
User avatar
ricktendo64
Posts: 3213
Joined: Mon May 22, 2006 12:27 am
Location: Honduras

[Solved] Adding KB972423 using TZChange.exe

Post by ricktendo64 » Sat Jun 13, 2009 2:37 am

Hello new "Optional" Daylight Savings entry has come out via MS Fix it named KB972423 and I was thinking there has got to be a way for us to do it VIA tzchange.exe tool

Here is what I got so far, the colored ones are the stuff I dont have a clue what to put there
"%11%\tzchange.exe /A ""Bangladesh Standard Time"" /S 6 5 3 23 0 0 0 /E 12 4 5 23 0 0 0 /D -60 /R 0 /B 270 /T ""Bangladesh Standard Time"" /L ""Bangladesh Daylight Time"" /N ""(GMT+06:00) Dhaka"" /G /I 2147483731"
Red = Need help with these, no clue what to put
Yellow = Not sure what they do but certain what to put there

So anybody I am glad to hear your expertize or thoughts

ty

Some help

Code: Select all

A command Line utility to make timezone changes

tzchange.exe [/A string] [/C string] [/F string] [/V string] [/S 7 integers]
             [/E 7 integers] [/M string] [/N string] [/B integer] [/Z integer]
             [/B integer] [/R integer] [/D integer] [/T string] [/L string] [/U]


/A   Add timezone option, followed by timezone name to add, max 120 characters
/C   Switch timezone, followed by timezone name to switch, max 120 characters
/F   Edit timezone, followed by timezone name to edit, max 120 characters
/V   Verification timezone, followed by timezone name, max 120 characters
/M   Delete Timezone, followed by timezone name to delete, max 120 characters
/S   Daylight Start date, followed by 7 integer values specifying:
       1. Month    [0-12] 0 for no daylight settings, 1-12 for Jan -> Dec
       2. DayofWeek[0-6]  for Sunday[0] -> Saturday[6]
       3. Day      [0-5]  0 for no daylight settings, 1-5 for day of month
       4. Hour     [0-23]
       5. Minutes  [0-59]
       6. Seconds  [0-59]
       7. Milliseconds [0-999]
     The above 7 integers are interpreted strictly in the same order.

/E   Daylight End\Standard start date, followed by 7 integer values like above
/N   New Display name, followed by the display name
/B   Bias in minutes, followed by an integer value between -780 and 720
     This option also updates the time offset in Display Name.

/R   Standard Bias in minutes, followed by an integer value between -780 and 720

/D   Daylight bias in minutes, followed by an integer value between -780 and 720

/T   Standard Name, followed by the standard name string, max 32 characters
/L   Daylight Name, followed by the daylight name string, max 32 characters
/U   Undo option [should not be combined with by any other option]
/Z   Number of Undo operations, followed by integer [-1 and above],
     Where -1 will Undo all previous timezone operations. This switch
     is optional during Undo, a default of 1 is taken if not specified.

/I   Index, followed by an integer, used only during Add operation.The index
     value should be between 3221225472[0xC0000000] and 4294967295[0xFFFFFFFF]

/?   Help
BTW tzedit.exe helped me find allot of values of what to put

Edit: OK I deduced that those numbers are probably for the Map display to move to the correct section

Edit2: Nope I think I was wrong, I think the (GMT+XX:XX) is probably what moves the map

Edit3: I have managed to get the tzchange.exe to make the exact same hex value for the TZI entry through messing around with different values (keep in mind I dont know exactly what those three mean) here is the final working tzchange switch

Code: Select all

"%11%\tzchange.exe /A ""Bangladesh Standard Time"" /S 6 5 3 23 0 0 0 /E 12 4 5 23 0 0 0 /D -60 /R 0 /B -360 /T ""Bangladesh Standard Time"" /L ""Bangladesh Daylight Time"" /N ""(GMT+06:00) Dhaka"" /G /I 2147483731"
Last edited by ricktendo64 on Sun Jun 14, 2009 2:10 am, edited 1 time in total.

User avatar
ricktendo64
Posts: 3213
Joined: Mon May 22, 2006 12:27 am
Location: Honduras

Post by ricktendo64 » Sun Jun 14, 2009 2:03 am

Update 5eraph cracked it, all you have to do is divide/multiply the offset and 60...also the Plus and Minus symbols are reversed for example

-300 if the timezone is +5:00

300 if the timezone is -5:00

300 Divided by 60 equals 5

BTW the final tzchange switch on the end was correct, with 5eraph's calculation I was able to confirm it
Last edited by ricktendo64 on Thu Jul 23, 2009 8:38 pm, edited 3 times in total.

User avatar
5eraph
Site Admin
Posts: 4618
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sun Jun 14, 2009 2:06 am

As discussed im IM, rick and I determined that /B refers to the GMT offset, between -12 and +13 hours, described in minutes. Just reverse the sign. :)

Thanks go to rick, he did most of the work in figuring it out and verification.

Post Reply