saheb11 / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Date.compare is not a function #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var astart = Date.parse('2011-01-01 ' + $('#' + a).data('apptdata').starttime);
var bstart = Date.parse('2011-01-01 ' + $('#' + b).data('apptdata').starttime);
return Date.compare(bstart,astart);

What is the expected output? What do you see instead?
Expected output is -1, 0, or 1, as stated in dox.

What version of the product are you using? On what operating system?
 * Version: 1.0 Alpha-1 
 * Build Date: 13-Nov-2007

FF on WinXP

Please provide any additional information below.

Original issue reported on code.google.com by flatulen...@gmail.com on 21 Aug 2011 at 4:33

GoogleCodeExporter commented 8 years ago
Disregard this. New version of code fixed it. You should make it easier to get 
the newest version... took me 3 tries to get the right one.

Original comment by flatulen...@gmail.com on 21 Aug 2011 at 4:56

GoogleCodeExporter commented 8 years ago
Wait. This is still an issue, on Chrome. Object function Date() {[native code]} 
has no method 'compare' is the output from Chrome's javascript console.

Original comment by flatulen...@gmail.com on 24 Oct 2011 at 3:54

GoogleCodeExporter commented 8 years ago
I am receiving "Object doesn't support this property or method." on 
Date.compare(date1, date2) in IE8. Other Date methods are working.

Original comment by tha...@gmail.com on 25 Oct 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Compare, isafter, isbefore... none of these functions seem to be included now? 
Is there even a working version?

Original comment by rmarq...@gmail.com on 6 Dec 2011 at 5:34

GoogleCodeExporter commented 8 years ago
http://datejs.googlecode.com/svn/trunk/build/date-en-US.js Use this

Original comment by dafin...@gmail.com on 31 Dec 2011 at 7:03

GoogleCodeExporter commented 8 years ago
What about Date.compare for non US date formats? Surely this bug fix should 
have been implemented across all cultureinfo dates?

Original comment by adamj...@gmail.com on 19 Mar 2012 at 9:15

GoogleCodeExporter commented 8 years ago
i think that is a no, i will try yo edit that code. Thanks anyway. It easyer to 
edit the code if the date-en-US alredy corrected =)

Original comment by lourenco...@gmail.com on 23 Jul 2013 at 1:14

GoogleCodeExporter commented 8 years ago
fixed in the current build of my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 16 Sep 2013 at 12:27