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. Date Time Picker Strange Behavior in Windows 7

Date Time Picker Strange Behavior in Windows 7

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 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.
  • S Offline
    S Offline
    softwaremonkey
    wrote on last edited by
    #1

    I have an app, developed in VC6.0 which uses a Date Time Picker control to display the time in a CTime object using HH:mm:ss format. This works OK on XP based PCs but when I run it on Windows 7 (32 bit) it displays the wrong time: A time of 00:00:10 is displayed as 16:00:10. The Date Time Picker control is mapped to the CTime object using MFC DDX_DateTimeCtrl. The time value in the CTime object seems to be correct. Has anyone come across this kind of thing before? TIA :thumbsup:

    D 1 Reply Last reply
    0
    • S softwaremonkey

      I have an app, developed in VC6.0 which uses a Date Time Picker control to display the time in a CTime object using HH:mm:ss format. This works OK on XP based PCs but when I run it on Windows 7 (32 bit) it displays the wrong time: A time of 00:00:10 is displayed as 16:00:10. The Date Time Picker control is mapped to the CTime object using MFC DDX_DateTimeCtrl. The time value in the CTime object seems to be correct. Has anyone come across this kind of thing before? TIA :thumbsup:

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

      Sounds like the regional (i.e., locale) settings are different between the two machines.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

      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