New NSGregorianDate with new NSTimeZone raises exception
Apple reference # 2296907
PROBLEM:
Using the NSGregorianDate constructor to generate a new date with a new NSTImeZone would generate an exception; for example, calling:
NSGregorianDate getADate = new NSGregorianDate(1999, 12, 25, 12, 15, 00, new NSTimeZone("EST", true));
would generate the error:
NSInvalidArgumentException: *** -[NSConcreteTimeZone _initWithJavaHandle:]:
timeZoneWithName returns nil value
Apple reference # 2293191
PROBLEM:
The NSTimeZone timeZoneWithName method would always return a nil value.
RESOLUTION:
Both of these problems can be resolved by replacing your system's WindowsName.table file, located in:
$NEXT_ROOT/Library/Frameworks/Foundation/Resources/TimeZoneInfo/WindowsName.table
Back up your old WindowsName.table file, then download the updated file:
Unzip this file, make sure the filename is WindowsName.table, then replace the original file with the version you've just downloaded. Your do not need to restart Windows NT for this workaround to take effect.