Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Issue with Date.parse and 10/29/2001

Reply
Thread Tools

Issue with Date.parse and 10/29/2001

 
 
Need Top Programmer
Guest
Posts: n/a
 
      05-27-2004
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
 
Reply With Quote
 
 
 
 
Lee
Guest
Posts: n/a
 
      05-27-2004
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.

 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      05-27-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (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 - (E-Mail Removed)
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
Dr John Stockton
Guest
Posts: n/a
 
      05-27-2004
JRS: In article <(E-Mail Removed)> , seen
in news:comp.lang.javascript, Need Top Programmer
<(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it a hardware issue or a config issue or something else Scooty Cisco 0 06-14-2008 04:02 PM
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM



Advertisments