Issue with Date.parse and 10/29/2001

Discussion in 'Javascript' started by Need Top Programmer, May 27, 2004.

  1. Has anyone else encountered this issue? When you do Date.parse(date1)
    and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    no reason.


    Thanks,

    Edward
     
    Need Top Programmer, May 27, 2004
    #1
    1. Advertising

  2. Need Top Programmer

    Lee Guest

    Need Top Programmer said:
    >
    >Has anyone else encountered this issue? When you do Date.parse(date1)
    >and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    >no reason.



    It doesn't happen to me, but then we don't do Daylight Saving Time.
     
    Lee, May 27, 2004
    #2
    1. Advertising

  3. (Need Top Programmer) writes:

    > Has anyone else encountered this issue? When you do Date.parse(date1)
    > and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    > no reason.


    It's daylight saving. The date 10/28/2001 (apparently mm/dd/yyyy
    format) is the Sunday where daylight saving were dropped, so it was 25
    hours long (in local time).

    /L
    --
    Lasse Reichstein Nielsen -
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, May 27, 2004
    #3
  4. JRS: In article <>, seen
    in news:comp.lang.javascript, Need Top Programmer
    <> posted at Thu, 27 May 2004 09:14:21 :

    >Has anyone else encountered this issue? When you do Date.parse(date1)
    >and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    >no reason.


    You cannot predict what happens when "you" do it; News is an
    international medium, and includes people from all sorts of places,
    perhaps including Australia, Hawaii, and parts of Arizona and of
    southern Indiana. Whatever you mean by the above, people using systems
    correctly configured for those places will not see a 3600 second change
    of that nature near that date.

    When asking date/time related questions, it is prudent to state one's
    locality, if that is not obvious.

    In the EU, what happens at around that date is not that something is
    added; it is that 3600 seconds - the Summer Time offset - is no longer
    being subtracted; in Autumn, we need to retard clocks that keep civil
    time.

    See below.

    --
    © John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
    <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
    <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
    <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
     
    Dr John Stockton, May 27, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. STom

    IIS5 and Sharepoint 2001

    STom, Feb 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    373
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,279
    Michael Borgwardt
    May 30, 2004
  3. Bon Bon
    Replies:
    0
    Views:
    293
    Bon Bon
    Jun 1, 2004
  4. Dr John Stockton

    new Date("2001/1/1 0:0:0R")

    Dr John Stockton, Oct 4, 2004, in forum: Javascript
    Replies:
    10
    Views:
    147
    Mick White
    Oct 8, 2004
  5. Dr J R Stockton

    Bug in Opera 9.21 8776 - new Date(2001, 0, BIG)

    Dr J R Stockton, Jun 12, 2007, in forum: Javascript
    Replies:
    1
    Views:
    71
    Dr J R Stockton
    Jun 13, 2007
Loading...

Share This Page