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. The Lounge
  3. I'm such an idiot!

I'm such an idiot!

Scheduled Pinned Locked Moved The Lounge
csssysadmincloudsalestutorial
9 Posts 6 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.
  • K Offline
    K Offline
    kmoorevs
    wrote on last edited by
    #1

    A few months ago, we launched a web-based timeclock Azure application. The web app uses a timezone offset from UTC application setting to derive client local time display/events. Since the inception, I have been carefully planning on how to deal with DST and yesterday being the first time change, I set aside a couple of hours to make sure it worked. The process was simple... change the web app config setting (for the timezone offset) to one less than the current setting. I tested it in development, works fine...tested on our demo/test server, works fine. So, all I needed to do on Azure was to modify the setting and restart the application...I did, and tested it and it looked fine. I was done, and felt pretty good about how smooth it went. :) Then, I get the email early this morning (the customer is a timezone ahead of us) that the timeclock was showing the wrong time! :omg: But I could swear that it was right yesterday! :confused: What was strange was that my cell phone and workstation times were different, and I just went with the cell phone time. Now I have to wait until late this afternoon when everyone is logged out of the system to figure out exactly what is wrong. I have a feeling that the 'always on' feature has prevented the new setting from taking effect. It's going to be a fun afternoon! X|

    "Go forth into the source" - Neal Morse

    Richard DeemingR D M 3 Replies Last reply
    0
    • K kmoorevs

      A few months ago, we launched a web-based timeclock Azure application. The web app uses a timezone offset from UTC application setting to derive client local time display/events. Since the inception, I have been carefully planning on how to deal with DST and yesterday being the first time change, I set aside a couple of hours to make sure it worked. The process was simple... change the web app config setting (for the timezone offset) to one less than the current setting. I tested it in development, works fine...tested on our demo/test server, works fine. So, all I needed to do on Azure was to modify the setting and restart the application...I did, and tested it and it looked fine. I was done, and felt pretty good about how smooth it went. :) Then, I get the email early this morning (the customer is a timezone ahead of us) that the timeclock was showing the wrong time! :omg: But I could swear that it was right yesterday! :confused: What was strange was that my cell phone and workstation times were different, and I just went with the cell phone time. Now I have to wait until late this afternoon when everyone is logged out of the system to figure out exactly what is wrong. I have a feeling that the 'always on' feature has prevented the new setting from taking effect. It's going to be a fun afternoon! X|

      "Go forth into the source" - Neal Morse

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Everything should be stored in UTC, and be converted to/from local time in javascript using the client's timezone. :)


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      H 1 Reply Last reply
      0
      • K kmoorevs

        A few months ago, we launched a web-based timeclock Azure application. The web app uses a timezone offset from UTC application setting to derive client local time display/events. Since the inception, I have been carefully planning on how to deal with DST and yesterday being the first time change, I set aside a couple of hours to make sure it worked. The process was simple... change the web app config setting (for the timezone offset) to one less than the current setting. I tested it in development, works fine...tested on our demo/test server, works fine. So, all I needed to do on Azure was to modify the setting and restart the application...I did, and tested it and it looked fine. I was done, and felt pretty good about how smooth it went. :) Then, I get the email early this morning (the customer is a timezone ahead of us) that the timeclock was showing the wrong time! :omg: But I could swear that it was right yesterday! :confused: What was strange was that my cell phone and workstation times were different, and I just went with the cell phone time. Now I have to wait until late this afternoon when everyone is logged out of the system to figure out exactly what is wrong. I have a feeling that the 'always on' feature has prevented the new setting from taking effect. It's going to be a fun afternoon! X|

        "Go forth into the source" - Neal Morse

        D Offline
        D Offline
        dexterama
        wrote on last edited by
        #3

        It also depends upon where your client is - in America, for example, Arizona does not respect DST, so a client calling in from AZ Saturday, needs the same offset he/she needs today, but others around Arizona need the -1.

        K 1 Reply Last reply
        0
        • D dexterama

          It also depends upon where your client is - in America, for example, Arizona does not respect DST, so a client calling in from AZ Saturday, needs the same offset he/she needs today, but others around Arizona need the -1.

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

          In this case, all offices are in the same time zone. One of the key specs for the project was that it had to be tamper-proof for the users, so no client settings are used whatsoever except to get a difference of timezone adjusted server time and local time, used to run a javascript clock.

          "Go forth into the source" - Neal Morse

          L 1 Reply Last reply
          0
          • K kmoorevs

            In this case, all offices are in the same time zone. One of the key specs for the project was that it had to be tamper-proof for the users, so no client settings are used whatsoever except to get a difference of timezone adjusted server time and local time, used to run a javascript clock.

            "Go forth into the source" - Neal Morse

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            I don't think you are an idiot, but I do think you are storing up trouble for the future. As Richard Deeming says above, you should get all timezone data from the client system.

            1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              Everything should be stored in UTC, and be converted to/from local time in javascript using the client's timezone. :)


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              H Offline
              H Offline
              H Brydon
              wrote on last edited by
              #6

              Yeah. What Richard said. (+1 too)

              I'm retired. There's a nap for that... - Harvey

              1 Reply Last reply
              0
              • K kmoorevs

                A few months ago, we launched a web-based timeclock Azure application. The web app uses a timezone offset from UTC application setting to derive client local time display/events. Since the inception, I have been carefully planning on how to deal with DST and yesterday being the first time change, I set aside a couple of hours to make sure it worked. The process was simple... change the web app config setting (for the timezone offset) to one less than the current setting. I tested it in development, works fine...tested on our demo/test server, works fine. So, all I needed to do on Azure was to modify the setting and restart the application...I did, and tested it and it looked fine. I was done, and felt pretty good about how smooth it went. :) Then, I get the email early this morning (the customer is a timezone ahead of us) that the timeclock was showing the wrong time! :omg: But I could swear that it was right yesterday! :confused: What was strange was that my cell phone and workstation times were different, and I just went with the cell phone time. Now I have to wait until late this afternoon when everyone is logged out of the system to figure out exactly what is wrong. I have a feeling that the 'always on' feature has prevented the new setting from taking effect. It's going to be a fun afternoon! X|

                "Go forth into the source" - Neal Morse

                M Offline
                M Offline
                Member 11683251
                wrote on last edited by
                #7

                Actually did read, sounds like a fun annoying case to track and fix. Looking forward to get the results on what caused the problem when you find it. :java:

                K 1 Reply Last reply
                0
                • M Member 11683251

                  Actually did read, sounds like a fun annoying case to track and fix. Looking forward to get the results on what caused the problem when you find it. :java:

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

                  I finally got it working. It turns out there is a big difference between applicationSettings and appSettings in .NET! I was using the wrong one! :doh: It only seemed to be working since I was replacing the dll every time previous to this. Ah well, I learned something! :laugh:

                  "Go forth into the source" - Neal Morse

                  M 1 Reply Last reply
                  0
                  • K kmoorevs

                    I finally got it working. It turns out there is a big difference between applicationSettings and appSettings in .NET! I was using the wrong one! :doh: It only seemed to be working since I was replacing the dll every time previous to this. Ah well, I learned something! :laugh:

                    "Go forth into the source" - Neal Morse

                    M Offline
                    M Offline
                    Member 11683251
                    wrote on last edited by
                    #9

                    Glad that you fixed it. :thumbsup:

                    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