rdmenezes / measureit

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

month_get_by_date does not work for yearly view #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
javascript new Date() is inconsistent when sending a YYYY-MM format without a 
day of the month.  

What is the expected output? What do you see instead?
For 2014-01 it is returning a month of 11 (december) instead of 0 (january)

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

Please provide any additional information below.
My quick fix was to change:
        var d=new Date(date);
to
        var d=new Date(date+"-1");
in month_get_by_date()

Original issue reported on code.google.com by mattrcam...@gmail.com on 7 Jan 2014 at 6:37

GoogleCodeExporter commented 9 years ago
I can not reproduce this. In Chrome, FF and Safari I get the right values.

Which browser / OS are you using? 

Original comment by lalelu...@gmail.com on 2 Feb 2014 at 12:22

Attachments:

GoogleCodeExporter commented 9 years ago
Chrome on OS X Mavericks

Original comment by mattrcam...@gmail.com on 2 Feb 2014 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by lalelu...@gmail.com on 25 Jul 2014 at 9:47