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. Other Discussions
  3. The Weird and The Wonderful
  4. Daylight saving bug? Or working as designed?

Daylight saving bug? Or working as designed?

Scheduled Pinned Locked Moved The Weird and The Wonderful
helpquestion
10 Posts 7 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.
  • J Offline
    J Offline
    James VT
    wrote on last edited by
    #1

    I wrote an in-house Overtime system for our workers. One particular shift is a 24-hour on-call, which is typically 8am to 8am the next day. A worker happened to do an on-call shift 3/10 8am to 3/11 8am, and the system said it was invalid--because he only did 23 hours due to the clocks being moved forward! Once he changed the end time to 9am, it worked. Strictly speaking, the system is correct--but it sure looks weird.

    T P M D 4 Replies Last reply
    0
    • J James VT

      I wrote an in-house Overtime system for our workers. One particular shift is a 24-hour on-call, which is typically 8am to 8am the next day. A worker happened to do an on-call shift 3/10 8am to 3/11 8am, and the system said it was invalid--because he only did 23 hours due to the clocks being moved forward! Once he changed the end time to 9am, it worked. Strictly speaking, the system is correct--but it sure looks weird.

      T Offline
      T Offline
      Tim Carmichael
      wrote on last edited by
      #2

      Hmmm... one of those annoying issues. 'Work' a full shift, but on that day, it's only 23 hours.. and in the Autumn, it's 25 hours. What happens if there is overlap for users? This user entered 8:00 AM to 9:00 AM, presumably, someone else may have worked from 8:00 AM on during the same hour.

      1 Reply Last reply
      0
      • J James VT

        I wrote an in-house Overtime system for our workers. One particular shift is a 24-hour on-call, which is typically 8am to 8am the next day. A worker happened to do an on-call shift 3/10 8am to 3/11 8am, and the system said it was invalid--because he only did 23 hours due to the clocks being moved forward! Once he changed the end time to 9am, it worked. Strictly speaking, the system is correct--but it sure looks weird.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        DST is evil; don't do it. Or at least convert everything to UTC and call it good.

        T W 2 Replies Last reply
        0
        • P PIEBALDconsult

          DST is evil; don't do it. Or at least convert everything to UTC and call it good.

          T Offline
          T Offline
          Tim Carmichael
          wrote on last edited by
          #4

          UTC, agreed.

          1 Reply Last reply
          0
          • J James VT

            I wrote an in-house Overtime system for our workers. One particular shift is a 24-hour on-call, which is typically 8am to 8am the next day. A worker happened to do an on-call shift 3/10 8am to 3/11 8am, and the system said it was invalid--because he only did 23 hours due to the clocks being moved forward! Once he changed the end time to 9am, it worked. Strictly speaking, the system is correct--but it sure looks weird.

            M Offline
            M Offline
            megaadam
            wrote on last edited by
            #5

            He actually spent 23 hours. The system (and his contract) should allow 23, 24, 25

            ... such stuff as dreams are made on

            1 Reply Last reply
            0
            • J James VT

              I wrote an in-house Overtime system for our workers. One particular shift is a 24-hour on-call, which is typically 8am to 8am the next day. A worker happened to do an on-call shift 3/10 8am to 3/11 8am, and the system said it was invalid--because he only did 23 hours due to the clocks being moved forward! Once he changed the end time to 9am, it worked. Strictly speaking, the system is correct--but it sure looks weird.

              D Offline
              D Offline
              den2k88
              wrote on last edited by
              #6

              Internals in UTC, presentation in local time.

              GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

              K 1 Reply Last reply
              0
              • P PIEBALDconsult

                DST is evil; don't do it. Or at least convert everything to UTC and call it good.

                W Offline
                W Offline
                W Balboos GHB
                wrote on last edited by
                #7

                Actually - just make it permanent and call it "The New Standard Time" (good start for TV Series?) It's absolutely great leaving (I cut out at 15:00) and having that bright sunshine, hours of it, ahead of me.

                Ravings en masse^

                "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                P 1 Reply Last reply
                0
                • D den2k88

                  Internals in UTC, presentation in local time.

                  GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

                  K Offline
                  K Offline
                  kmoorevs
                  wrote on last edited by
                  #8

                  den2k88 wrote:

                  Internals in UTC, presentation in local time.

                  The presentation still wouldn't add up...just make presentation UTC as well...they'll get used to it! No more DST problems! :laugh:

                  "Go forth into the source" - Neal Morse

                  D 1 Reply Last reply
                  0
                  • K kmoorevs

                    den2k88 wrote:

                    Internals in UTC, presentation in local time.

                    The presentation still wouldn't add up...just make presentation UTC as well...they'll get used to it! No more DST problems! :laugh:

                    "Go forth into the source" - Neal Morse

                    D Offline
                    D Offline
                    den2k88
                    wrote on last edited by
                    #9

                    If the presentation doesn't add up due to DST shenanigans it's not a problem - presentation is for the human user who could use his human brain to take into account the reason of discrepancy.

                    kmoorevs wrote:

                    make presentation UTC as well...they'll get used to it!

                    Empyrical proof taught me that this is not the case, unfortunately :D

                    GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X

                    1 Reply Last reply
                    0
                    • W W Balboos GHB

                      Actually - just make it permanent and call it "The New Standard Time" (good start for TV Series?) It's absolutely great leaving (I cut out at 15:00) and having that bright sunshine, hours of it, ahead of me.

                      Ravings en masse^

                      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                      "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      I generally work 07:00 to 15:30 . No need to change your clock or insist that other do.

                      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