Information for Editors
In order to have a new guideline automatically listed above be sure to label it env and rule.

Risk Assessment Summary

Rule

Severity

Likelihood

Detectable

Repairable

Priority

Level

ENV30-CLowProbableNoNo

P2

L3

ENV31-CLowProbableYesNo

P4

L3

ENV32-CMediumLikelyYesNo

P12

L1

ENV33-CHighProbableYesNo

P12

L1

ENV34-CLowProbableYesNo

P4

L3

Related Rules and Recommendations


1 Comment

  1. Do NOT modify the TZ enviornment as part of a hack to convert date/time from one time zone to another.

    I spent several days tracking down a bug in a production environment with a multi-threaded application in which conversion between time zones was done by setting the TZ environment variable to one time zone, getting local time, then changing to another time zone to get an ascii string to store the information in a database. Other portions of the code accessed the time functions to find the current time (assumed) local time. Depending on race conditions, this occasionally resulted in incorrect times. This is a published hack that should NOT be used. Use Boost or similar library instead.