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. SetSystemTime - GMT and BST

SetSystemTime - GMT and BST

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 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.
  • M Offline
    M Offline
    mcsherry
    wrote on last edited by
    #1

    my app allows the user to change the current time on the pc and it also displays the current time at the bottom of the apps window (its a full screen app so the user can't see the windows time). I've noticed that when I change the time in my app it changes correctly however the windows timer gets an extra hour added, I'm assuming this is due to BST, what is the preferred method for changing the time correctly so I don't get this extra hour? TIA, Andy

    N D 2 Replies Last reply
    0
    • M mcsherry

      my app allows the user to change the current time on the pc and it also displays the current time at the bottom of the apps window (its a full screen app so the user can't see the windows time). I've noticed that when I change the time in my app it changes correctly however the windows timer gets an extra hour added, I'm assuming this is due to BST, what is the preferred method for changing the time correctly so I don't get this extra hour? TIA, Andy

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Lookup SetLocalTime also read remarks section in the docs carefully.


      Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com

      1 Reply Last reply
      0
      • M mcsherry

        my app allows the user to change the current time on the pc and it also displays the current time at the bottom of the apps window (its a full screen app so the user can't see the windows time). I've noticed that when I change the time in my app it changes correctly however the windows timer gets an extra hour added, I'm assuming this is due to BST, what is the preferred method for changing the time correctly so I don't get this extra hour? TIA, Andy

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        mcsherry wrote:

        I'm assuming this is due to BST...

        British Summer Time Brazil Standard Time Bering Strait Time Business Software Technology :confused:


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        M 1 Reply Last reply
        0
        • D David Crow

          mcsherry wrote:

          I'm assuming this is due to BST...

          British Summer Time Brazil Standard Time Bering Strait Time Business Software Technology :confused:


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          I'm going with the third one... :)

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          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