How to determine if Daylight Saving Time is enabled or not in qnx?
<p>I have done the following on a QNX Neutrino OS platform:</p>

<pre><code>extern int daylight;
....
tzset();

printf("DST %s\n", daylight ? "enabled":"disabled");
printf( "TZ: %s\n", (tz = getenv( "TZ" )) ? tz : "default IST" );
</code></pre>

<p>And output is :</p>

<pre><code>DST enabled

TZ: default IST
</code></pre>

<p>which is incorrect, even though it shows dst enabled but TZ is giving default value.</p>

<p>Whats wrong with this implementation?</p>