Y2K at DoD

From Defenselink.mil

ahem.gif

(Edit: Kiltak’s telling me the site looks fine from his end – I’m wondering if this is a Firefox thing.)

Advertisement





18 Responses to Y2K at DoD

  1. One of my friends tried Konqueror and Opera, and it does the 107 on there too. Kazehakase probably also does it as that's a Gecko-based browser. Now just need someone to pop in on whether old versions of IE do it or not, and about Safari.

  2. One of my friends tried Konqueror and Opera, and it does the 107 on there too. Kazehakase probably also does it as that’s a Gecko-based browser. Now just need someone to pop in on whether old versions of IE do it or not, and about Safari.

  3. Yep…only in firefox…I tried it on IE6 and IE7, and 2007 is displayed using a PC with Windows Vista…Opera, Safari and Chimera 0.6 display 107 in my OS X mac book…weird…

  4. Yep…only in firefox…I tried it on IE6 and IE7, and 2007 is displayed using a PC with Windows Vista…Opera, Safari and Chimera 0.6 display 107 in my OS X mac book…weird…

  5. That means they're coding some kind of IE-specific Javascript. Javascript is why it is blank for Lynx but shows on the others. If IEs are all that have shown "2007" out of Gecko (Firefox), Opera, KHTML (Konqueror, Safari), it has to be that they're coding to a browser instead of coding to standards which is *bad*practice*

    • ———————————-

      var today_date= new Date()

      var month=today_date.getMonth()

      var today=today_date.getDate()

      var year=today_date.getYear()

      var months = new Array("January","February","March","April","May","June","July",

      "August","September","October","November","December");

      SCRIPT language=Javascript document.write(months[month]+" "+today+", "+year);

      ————————————

      getYear() returns the current year – 1900, so the result you get is

      exactly what the spec says you should get. If you want 2007 rather than

      107 people have to use getFullYear():

      I left them a comment about this issue. Now let's see how fast they are to resolve it.

  6. That means they’re coding some kind of IE-specific Javascript. Javascript is why it is blank for Lynx but shows on the others. If IEs are all that have shown “2007” out of Gecko (Firefox), Opera, KHTML (Konqueror, Safari), it has to be that they’re coding to a browser instead of coding to standards which is *bad*practice*

    • ———————————-
      var today_date= new Date()
      var month=today_date.getMonth()
      var today=today_date.getDate()
      var year=today_date.getYear()
      var months = new Array(“January”,”February”,”March”,”April”,”May”,”June”,”July”,
      “August”,”September”,”October”,”November”,”December”);

      SCRIPT language=Javascript document.write(months[month]+” “+today+”, “+year);
      ————————————

      getYear() returns the current year – 1900, so the result you get is
      exactly what the spec says you should get. If you want 2007 rather than
      107 people have to use getFullYear():

      I left them a comment about this issue. Now let’s see how fast they are to resolve it.

  7. Wow, they've actually listened and implemented my suggested fix :) That was quick!

    var year=today_date.getFullYear()

  8. Wow, they’ve actually listened and implemented my suggested fix :) That was quick!

    var year=today_date.getFullYear()