[926] in IS Home Pages

home help back first fref pref prev next nref lref last post

Fwd: Correction necessary on IS web page

daemon@ATHENA.MIT.EDU (Kris Nyzio)
Fri Jan 14 11:33:18 2000

Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Message-Id: <v04020a00b4a5002a5431@[18.152.0.126]>
Date: Fri, 14 Jan 2000 11:33:08 -0500
To: mcc@mit.edu
From: Kris Nyzio <knyzio@MIT.EDU>
Cc: is-home@mit.edu

Hi MCC:
I believe this is one of your pages.
Kris

>Date: Fri, 14 Jan 2000 10:07:53 -0500 (EST)
>From: jmorzins@MIT.EDU
>To: is-home@mit.edu (IS Webmasters)
>Subject: Correction necessary on IS web page
>
>Please provide as much information as you can. Thank you.
>
>** Incorrect information:
>    The page I was looking at contains a hardcoded "/19"
>    in a printed date.  This causes dates on MSIE to
>    print as "192000" and dates on Netscape to print
>    as "19100".
>
>    Fun.
>
>** Location (URL):
>    http://web.mit.edu/mcc/www/announcement.html
>
>** Correction:
>    A better way to do dates would be to make lines 14-17 be
>var year=mydate.getYear()
>if (year<1000)
>year=1900+year
>var day=mydate.getDay()
>
>    and lines 41-46 be
>year = test.getYear()
>
>if (year<1000)
>year=1900+year
>
>document.write(" ",month,"/",day,"/",year," ")
>
>
>    I apologize if these line numbers are off by one or two;
>    I'm on a Mac right now, and don't have easy access to
>    the "diff" and "patch" programs.
>
>    Yes, the "windowing" around year 1000 is klugy, but
>    the screwed-up behavior of MSIE makes it hard to do
>    anything else.  Netscape always returns year-1900
>    when you get the JavaScript date, but MSIE will
>    return 2-digit years during the 1900's, but 4-digit(!)
>    years for ANY other century.
>
>** Is there an original source for this information (i.e. author, owner,
>etc.)?
>
>    http://www.millkern.com/jsdate.html contains half
>     of this suggested fix.
>
>** Do you have a special interest in this information (i.e. owner,
>frequent reader, etc.)?
>    Nope.
>




~~~~~~~~~~~~~~~~~~~~~~~~~
Kris Nyzio
Web Production Assistant
MIT Information Systems
N42-290h
(617) 253-2476
(617) 258-6875 fax
knyzio@mit.edu
~~~~~~~~~~~~~~~~~~~~~~~~~

home help back first fref pref prev next nref lref last post