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. Y2K.01 bug

Y2K.01 bug

Scheduled Pinned Locked Moved The Lounge
helpc++comarchitecturequestion
10 Posts 10 Posters 2 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.
  • C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #1

    Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
    if( decade = 0 ) then
    return "20" || my_YYDDD_DateString ;
    else
    return "19" || my_YYDDD_DateString ;

    HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

    cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

    D M P A R 6 Replies Last reply
    0
    • C Chris Maunder

      Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
      if( decade = 0 ) then
      return "20" || my_YYDDD_DateString ;
      else
      return "19" || my_YYDDD_DateString ;

      HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

      cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

      D Offline
      D Offline
      DaveX86
      wrote on last edited by
      #2

      They must be planning ahead for job security :)

      1 Reply Last reply
      0
      • C Chris Maunder

        Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
        if( decade = 0 ) then
        return "20" || my_YYDDD_DateString ;
        else
        return "19" || my_YYDDD_DateString ;

        HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

        cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Thats what you call a short term view. Probably a contractor either building in some job security or they were building a tactical system that was designed to last 1-2 years, not thats not even a valid excuse for this stuff.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • C Chris Maunder

          Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
          if( decade = 0 ) then
          return "20" || my_YYDDD_DateString ;
          else
          return "19" || my_YYDDD_DateString ;

          HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

          cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          Funny about that. For my sins, I'm stuck with maintaining an ancient (as in 16-bit DOS exe's) system where the original developers decided that 31 Dec 2010 was past the end of time. Not only that, the value is in a .h, so it's compiled into instructions all over the place:

          cmp dx,2010
          jg bad_date

          One of two of them aren't too bad, but when some sites have been compiled with different compiler versions/optimisation settings it becomes a right royal PITA. And, of course, every site out there is different, and we can't rebuild from source... :mad:

          D 1 Reply Last reply
          0
          • C Chris Maunder

            Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
            if( decade = 0 ) then
            return "20" || my_YYDDD_DateString ;
            else
            return "19" || my_YYDDD_DateString ;

            HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

            cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

            A Offline
            A Offline
            Anna Jayne Metcalfe
            wrote on last edited by
            #5

            Thankfully, no. Am I the the lucky one? :-\

            Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

            1 Reply Last reply
            0
            • P Peter_in_2780

              Funny about that. For my sins, I'm stuck with maintaining an ancient (as in 16-bit DOS exe's) system where the original developers decided that 31 Dec 2010 was past the end of time. Not only that, the value is in a .h, so it's compiled into instructions all over the place:

              cmp dx,2010
              jg bad_date

              One of two of them aren't too bad, but when some sites have been compiled with different compiler versions/optimisation settings it becomes a right royal PITA. And, of course, every site out there is different, and we can't rebuild from source... :mad:

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #6

              ... does that mean you're patching the apps with a disassembler?

              The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

              G 1 Reply Last reply
              0
              • D Dan Neely

                ... does that mean you're patching the apps with a disassembler?

                The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

                G Offline
                G Offline
                grgran
                wrote on last edited by
                #7

                A DISASSEMBLER!??! What kind of girlie man are you ??? The only manly way to patch that code is with a hex editor. :-)

                1 Reply Last reply
                0
                • C Chris Maunder

                  Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
                  if( decade = 0 ) then
                  return "20" || my_YYDDD_DateString ;
                  else
                  return "19" || my_YYDDD_DateString ;

                  HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

                  cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

                  R Offline
                  R Offline
                  rabryst
                  wrote on last edited by
                  #8

                  I built in a hard limit to a VB6 app I originally wrote in 1999, which wouldn't work past 31 December 2007. Then I had to issue a fast upgrade on 1 January 2008. Yes, I didn't think I'd still be supporting it eight years later. Edit: I can't tell decades apart, apparently.

                  L 1 Reply Last reply
                  0
                  • R rabryst

                    I built in a hard limit to a VB6 app I originally wrote in 1999, which wouldn't work past 31 December 2007. Then I had to issue a fast upgrade on 1 January 2008. Yes, I didn't think I'd still be supporting it eight years later. Edit: I can't tell decades apart, apparently.

                    L Offline
                    L Offline
                    LenaBr
                    wrote on last edited by
                    #9

                    None of us writing that old legacy code ever believed in 25 years in the future. But damn that future came up and bit us in the behind faster then we thought possible. I mean who at 25 thinks they are writing code to last more then 10 years, and at 2000 I would have been 49 - who lives that long?

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Interesting message[^] in the general discussions forum._decade = substring( my_YYDDD_DateString, 1,1 ) ;--return a YYYYDDD date string.
                      if( decade = 0 ) then
                      return "20" || my_YYDDD_DateString ;
                      else
                      return "19" || my_YYDDD_DateString ;

                      HOLY MOLEY! They took a Y2K issue and fixed it by creating a Y2.01K issue. Given that the Fiscal Year where this code is used ends on Sep 30, they've got about 56 days to get it fixed!_ Anyone seen this kind of thing lying around?

                      cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

                      H Offline
                      H Offline
                      Holy Av
                      wrote on last edited by
                      #10

                      Their next quick fix will be if(decade < 2) :laugh:

                      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