Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

_tzname[0] returns empty time zone

$
0
0

Hi,

In the below code time zone name is coming as empty. But is used to work in other machines which has English local.

Local of my machine is chinese and time zome set is "China Standard Time."

But when i'm using GetTimeZoneInformation function, I’m able to get the time zone in Chinese.

Can someone please help here?

int _tmain(int argc, _TCHAR* argv[])

{            

_tzset();            

cout << _tzname[0];           

  return 0;

}

Thanks,

Divakar.



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>