how to set Timezone on qnx m/c through c++ code

Hi
Can qnybody tell me how to set Timezone on qnx m/c through c++ code…

What does the “Locale Information” in “Configure” of GUI QNX do to set timezone… I need the same effect in my prog too…

Actually right now i am using
confstr( _CS_SET | _CS_TIMEZONE, sTimeZone, 0 );
which sets the TZ env variable but when i shut down the system the same TimeZone value is not set
I need the timezone to be set permanently even if I shut down using C++

Please Please I need help Urgently…
Thanks…

When you boot, your machine uses the setting in /etc/TIMEZONE, so you need to save the setting there. See “Setting the time zone” in the Configuring Your Environment chapter of the Neutrino User’s Guide.