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. Leap Year Unplanned Feature?

Leap Year Unplanned Feature?

Scheduled Pinned Locked Moved The Lounge
comhelpquestion
16 Posts 10 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.
  • A AspDotNetDev

    I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

    Thou mewling ill-breeding pignut!

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

    I bet the first one was on February 28th. And that the server then entered a new day in it's own time-zone.

    ..................... Life is too shor

    1 Reply Last reply
    0
    • A AspDotNetDev

      I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

      Thou mewling ill-breeding pignut!

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

      Undoubtedly, the first one is the good businessman.

      1 Reply Last reply
      0
      • A AspDotNetDev

        I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

        Thou mewling ill-breeding pignut!

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

        AspDotNetDev wrote:

        Unplanned Feature

        Is that a euphemism for a bug?

        A 1 Reply Last reply
        0
        • L Lost User

          AspDotNetDev wrote:

          Unplanned Feature

          Is that a euphemism for a bug?

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #7

          Yep, Chris wrote that in a recent Code Project newsletter.

          Thou mewling ill-breeding pignut!

          1 Reply Last reply
          0
          • A AspDotNetDev

            I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

            Thou mewling ill-breeding pignut!

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #8

            AspDotNetDev wrote:

            I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day).

            I'd go for the second one because it doesn't expire until 2103. That's 91 years from now.

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

            A 1 Reply Last reply
            0
            • realJSOPR realJSOP

              AspDotNetDev wrote:

              I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day).

              I'd go for the second one because it doesn't expire until 2103. That's 91 years from now.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

              A Offline
              A Offline
              AspDotNetDev
              wrote on last edited by
              #9

              Butterfingers. :)

              Thou mewling ill-breeding pignut!

              1 Reply Last reply
              0
              • A AspDotNetDev

                I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

                Thou mewling ill-breeding pignut!

                J Offline
                J Offline
                julian giant
                wrote on last edited by
                #10

                Well, we had a funny that took up most of Tuesday. Any .Net DateTimePickers in a WinForm that had a custom date format that didn't show the day (e.g. just showing Month and Year - 'MM yyyy') caused an exception on trying to change the year. Internally, the control didn't change the day when changing the year from 2012 to 2011, causing a date of 29/02/2011. The DTP threw an exception. This affected 17 forms in 1 program. To get round it, on loading the form I made sure that the date was formatted to 01/ + whatever the current month and year are. :( Julian

                A K 2 Replies Last reply
                0
                • A AspDotNetDev

                  I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

                  Thou mewling ill-breeding pignut!

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #11

                  Once upon a time I wrote control software for a device that had maintained its own date and time. My application set the date and time to match the controlling PC, for the sake of consistency. While we were testing this, we discovered that the device didn't let me set leap days: February 29th. I explained this to the yutz who wrote the firmware for the device, and he gave me a correction. Now the device wouldn't let me set dates in February at all. :rolleyes:

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • J julian giant

                    Well, we had a funny that took up most of Tuesday. Any .Net DateTimePickers in a WinForm that had a custom date format that didn't show the day (e.g. just showing Month and Year - 'MM yyyy') caused an exception on trying to change the year. Internally, the control didn't change the day when changing the year from 2012 to 2011, causing a date of 29/02/2011. The DTP threw an exception. This affected 17 forms in 1 program. To get round it, on loading the form I made sure that the date was formatted to 01/ + whatever the current month and year are. :( Julian

                    A Offline
                    A Offline
                    AspDotNetDev
                    wrote on last edited by
                    #12

                    That's what you get for using the "Julian" calendar. ;)

                    Thou mewling ill-breeding pignut!

                    J 1 Reply Last reply
                    0
                    • A AspDotNetDev

                      That's what you get for using the "Julian" calendar. ;)

                      Thou mewling ill-breeding pignut!

                      J Offline
                      J Offline
                      julian giant
                      wrote on last edited by
                      #13

                      Very funny.... :laugh: And I meant Wednesday in my post not Tuesday BTW. J

                      1 Reply Last reply
                      0
                      • J julian giant

                        Well, we had a funny that took up most of Tuesday. Any .Net DateTimePickers in a WinForm that had a custom date format that didn't show the day (e.g. just showing Month and Year - 'MM yyyy') caused an exception on trying to change the year. Internally, the control didn't change the day when changing the year from 2012 to 2011, causing a date of 29/02/2011. The DTP threw an exception. This affected 17 forms in 1 program. To get round it, on loading the form I made sure that the date was formatted to 01/ + whatever the current month and year are. :( Julian

                        K Offline
                        K Offline
                        KP Lee
                        wrote on last edited by
                        #14

                        You could code a more frequent bug by formatting to 31/ + whatever the current month and year are. Or change the default format to US standards of mm/dd/yyyy for even more frequent problems. ;P

                        1 Reply Last reply
                        0
                        • A AspDotNetDev

                          I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

                          Thou mewling ill-breeding pignut!

                          K Offline
                          K Offline
                          KP Lee
                          wrote on last edited by
                          #15

                          What time was this? (In UTC time. In your local time. The local time of the registering authority?) You add a year or 365 days in SQL on a Feb 29 date, it is Feb. 28. You add a year or 365 days on Feb 28th in a leap year, you get Feb 28 OR Feb 27. It's 4PM here now, so we just turned to a new day on UTC time.

                          1 Reply Last reply
                          0
                          • A AspDotNetDev

                            I registered a couple domains today at the same time (part of the same order) and I got an email that states when they expire. One expires on February 28th, 2013 and the other on March 1st, 2103. Leap year bug? Or maybe it's a "feature" (they randomly choose one of the two adjacent days for the expiration of domains registered on a leap day). :-D

                            Thou mewling ill-breeding pignut!

                            S Offline
                            S Offline
                            Siedlerchr
                            wrote on last edited by
                            #16

                            In our software we had a verification if the person is older than 18 years That went wrong on 29th February, because someone just did this: Today() -18 years The date was invalid then and the verification said the person is under 18 years although it was older than 18 years old.

                            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