Sarjerao wrote:
> I am facing issue while product test with different time zone option.
> Time zone with Asia/Calcutta & GMT+5:30 shows 11 hrs difference.
> $ TZ=Asia/Calcutta
> $ export TZ
> $ date
> Fri Jun 13 10:39:04 IST 2008
> $ TZ="GMT+5:30"
> $ export TZ
> $ date
> Thu Jun 12 23:39:19 GMT 2008

"Asia/Calcutta" is the correct form to use.   The "GMT+5:30" syntax
does not work the way you think - it says "my time zone name is GMT,
and when you add 5hours and 30 minutes to it, you get UTC" - in
other words, it's backwards from what most people expect, but that's
the POSIX definition of a timezone specified that way.   See the TZ
section of the environ(5) man page.

-- 
        -Alan Coopersmith-           [EMAIL PROTECTED]
         Sun Microsystems, Inc. - X Window System Engineering

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to