critical impact:
tm data structure - differences (CrCh117)
Problem description
The tm_gmtoff and tm_zone fields are not available in the tm data structure on HP-UX.
On Tru64 UNIX, the tm_gmtoff field in the tm data structure specifies the seconds east of Greenwich (UTC). For example, -18000 means 5 hours west of Greenwich. The tm_zone field is a string that is an abbreviation for the current time zone (for example, EST, PDT, GMT). Identifiers
 tm_gmtoff |
 tm_zone |
|
|
|
See also
Solution description
Modify your code.
If your application makes use of the tm_gmtoff and tm_zone structure fields, modify it to use the HP-UX timezone and tzname external variables.
For example: tm_gmtoff = -timezone
tm_zone = tzname[tm_isdst]
Note: It is no longer possible to have different a tm data structure using different time zone information. Time zone information is global across a single process.
The TZ environment variable is also interpreted differently. Please review the impact statement on the tzset routine for more information. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| DA |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|