Adding time entries is broken at the end of month
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eventum |
Fix Released
|
Undecided
|
Elan Ruusamäe |
Bug Description
There is a problem with adding new time entries at the end of the month, i.e. when the current day of month is above 28. Today I tried to create a time entry for last month, and the form would not let me select April in any of the date pickers. It would always change the field to May. Selecting any other month with less than 31 days was also not possible.
The problem is caused by the makeDate() function in htdocs/
Fixing the bug is trivial: Starting with JavaScript version 1.3 (i.e. since 1998 according to Wikipedia) the setMonth() call has an optional day parameter which sets month and day at the same time. See attached patch for details.
Changed in eventum: | |
status: | Fix Committed → Fix Released |
applied in
http:// bazaar. launchpad. net/~eventum- developers/ eventum/ trunk/revision/ 4581 /github. com/eventum/ eventum/ commit/ edd0a869dba9954 1e6a7b42ff28826 b9bece0429
https:/