cattechnologies / datejs

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

getWeek() returning wrong week number #66

Open GoogleCodeExporter opened 8 years ago

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

Date.parse('2009-02-23').getWeek()

What is the expected output? What do you see instead?

Expected: 10, returned: 9

What version of the product are you using? On what operating system?

SVN/any browser/Linux

Original issue reported on code.google.com by jan.schn...@gmail.com on 26 Mar 2009 at 5:28

GoogleCodeExporter commented 8 years ago
Patch attached.

Original comment by jan.schn...@gmail.com on 26 Mar 2009 at 5:53

Attachments:

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/datejs/wiki/APIDocumentation#getWeek

When I manually count the weeks, the date '2009-02-23' should be week #9.

The algorithm appears correct to me? 

Original comment by geoff%co...@gtempaccount.com on 26 Mar 2009 at 10:43