Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting the name of current time zone .

Getting the name of current time zone .

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VCSharp007
    wrote on last edited by
    #1

    Hi, I want to get the currently selected time zone name( that exact string as in the time zone combo box of standard Date and Time dialog). Is there any method for it? (GetTimeZoneInformation()will not meet my requirement.) Plz help. Thanx in advance.

    H 1 Reply Last reply
    0
    • V VCSharp007

      Hi, I want to get the currently selected time zone name( that exact string as in the time zone combo box of standard Date and Time dialog). Is there any method for it? (GetTimeZoneInformation()will not meet my requirement.) Plz help. Thanx in advance.

      H Offline
      H Offline
      Hans Ruck
      wrote on last edited by
      #2

      After calling GetTimeZoneInformation(&tzi), you have to look at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\tzi.DaylightName key. Its Display value is the one you are searching for.


      "no xe tuto oro quel che luse" rechi+

      V 1 Reply Last reply
      0
      • H Hans Ruck

        After calling GetTimeZoneInformation(&tzi), you have to look at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\tzi.DaylightName key. Its Display value is the one you are searching for.


        "no xe tuto oro quel che luse" rechi+

        V Offline
        V Offline
        VCSharp007
        wrote on last edited by
        #3

        yeah. Thanx.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups