0

Can someone please tell me how to set the "TZ" environment variable at system level? And what should be its value for "China Standard Time"?

executing the below command in cmd prompt does not set the value at system level. set TZ=CST8

user3136061
  • 51
  • 1
  • 4

1 Answers1

1

Run SystemPropertiesAdvanced.exe then manage to set the variable.

or setx TZ CST8

You may need to restart cmd.exe

thinker3
  • 12,771
  • 5
  • 30
  • 36
  • After setting the environemtal variable like this _tzname[0] return the time zone name as "CST". Shouldn't it return as "China Standard Time"? – user3136061 Jul 10 '14 at 06:46