Unix Deployment Time Zone Error

This article discusses a common problem encountered while running version 4.2 of Portable Distributed Objects or version 3.5.1 of WebObjects on Solaris or HP-UX platforms.
Q: Why do I get the error message
*** Could not find data for default time zone, using GMT
when running my OPENSTEP or WebObjects program on Solaris or HP-UX? The same program runs fine on other platforms.


A: This error is caused when the /etc/zoneinfo/localtime symbolic link is missing or pointing to a non-existing directory. This problem can happen after running the PDO 4.2 Install Script.
To fix the problem, you should su to root and do the following:

1) Remove the symbolic link if it exists.
2) Recreate the symbolic link. The commands will look something like:
cd /etc/zoneinfo
ln -s US/Pacific localtime

You can get a list of all the available timezones under the /etc/zoneinfo directory.
Published Date: Feb 18, 2012