-
+
Regression Tests
Most of the date and time results are dependent on the time zone
environment. The reference files are generated for time zone
- PST8PDT (Berkeley, California), and there will be apparent
- failures if the tests are not run with that time zone setting.
+ PST8PDT (Berkeley, California), and there will be
+ apparent failures if the tests are not run with that time zone setting.
The regression test driver sets environment variable
PGTZ to PST8PDT, which normally
- ensures proper results. However, your operating system must provide
- support for the PST8PDT time zone, or the time zone-dependent
- tests will fail. To verify that your machine does have this
- support, type the following:
-
-env TZ=PST8PDT date
-
- The command above should have returned the current system time in
- the PST8PDT time zone. If the PST8PDT time zone is not available,
- then your system may have returned the time in UTC. If the
- PST8PDT time zone is missing, you can set the time zone
- rules explicitly:
-PGTZ='PST8PDT7,M04.01.0,M10.05.03'; export PGTZ
-
-
-
- There appear to be some systems that do not accept the
- recommended syntax for explicitly setting the local time zone
- rules; you may need to use a different PGTZ
- setting on such machines.
-
-
- Some systems using older time-zone libraries fail to apply
- daylight-saving corrections to dates before 1970, causing
- pre-1970
PDT times to be displayed in
PST instead. This will
- result in localized differences in the test results.
+ ensures proper results.