WebObjects: Incorrect Time Values for GMT under Windows NT 4.0 SP4

Some changes in the way Windows NT handles time zones were made between Windows NT 4 Service Pack 3 and Service Pack 4. As a result, some Foundation time and date methods will display the wrong time when the time zone is set to GMT on a Service Pack 4 system. To correct the problem, you will need to make some changes to the WindowsName.table file on these systems. This document contains instructions on making the necessary changes.
Modifying the WindowsName.table file under WebObjects 4

The WindowsName.table file is found in your WebObjects Frameworks directory, under:

Foundation.framework/Resources/TimeZoneInfo/WindowsName.table

This file is a serialized plist, so you will need to deserialize it before editing. To preserve the Unicode file format, only use TextEdit to modify this file.

1. In a Bourne shell, change to the directory containing the WindowsName.table file and enter the following commands:

cp WindowsName.table WindowsName.table.orig
pl -input WindowsName.table > MyWorkFile
rm WindowsName.table

2. Next, use TextEdit to change the following lines in MyWorkFile:

3. Finally, use the following commands to reserialize the file:

pl -output WindowsName.table < MyWorkFile
rm MyWorkFile

Modifying the WindowsName.table file under OPENSTEP Enterprise 4.2

The steps needed to modify the file are the same as for WebObjects, except that you do not need to serialize or reserialize the file. Using TextEdit, make the changes to the WindowsName.table file listed under Step 2 for WebObjects, above. Apple recommends that you make these changes on a copy of the file rather than the original file; however, you do not need to use the 'pl' command to deserialize and reserialize the copy first. To preserve the Unicode file format, only use TextEdit to modify this file.

Published Date: Feb 18, 2012