Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0018395 | Openbravo ERP | A. Platform | public | 2011-08-31 10:45 | 2011-09-07 17:58 |
|
| Reporter | egoitz | |
| Assigned To | dbaz | |
| Priority | immediate | Severity | critical | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | 3.0MP2 | |
| Target Version | 3.0MP3 | Fixed in Version | 3.0MP3 | |
| Merge Request Status | |
| Review Assigned To | |
| OBNetwork customer | OBPS |
| Web browser | |
| Modules | Core |
| Support ticket | 12476 |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0018395: Not possible to save documents with a date of a month with 30 or 28 days. |
| Description | Not possible to save dates if the month has 30 or 28 days.
Not possible to save documents with a date of February, April, June, September, November. |
| Steps To Reproduce | -Create a new invoice.
-Define the date 01-09-2011
*See that the date is changed to 01-10-2011 |
| Proposed Solution | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2011-08-31 10:45 | egoitz | New Issue | |
| 2011-08-31 10:45 | egoitz | Assigned To | => alostale |
| 2011-08-31 10:45 | egoitz | Modules | => Core |
| 2011-08-31 10:45 | egoitz | OBNetwork customer | => Yes |
| 2011-08-31 10:46 | egoitz | Support ticket | => 12476 |
| 2011-08-31 10:46 | egoitz | Resolution time | => 1315260000 |
| 2011-08-31 10:46 | egoitz | Issue Monitored: networkb | |
| 2011-08-31 10:52 | jonalegriaesarte | Assigned To | alostale => dbaz |
| 2011-08-31 11:33 | jonalegriaesarte | Target Version | => 3.0MP3 |
| 2011-08-31 20:04 | dbaz | Note Added: 0040640 | |
| 2011-08-31 20:07 | hgbot | Checkin | |
| 2011-08-31 20:07 | hgbot | Note Added: 0040641 | |
| 2011-08-31 20:07 | hgbot | Status | new => resolved |
| 2011-08-31 20:07 | hgbot | Resolution | open => fixed |
| 2011-08-31 20:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^] |
| 2011-09-01 14:35 | hudsonbot | Checkin | |
| 2011-09-01 14:35 | hudsonbot | Note Added: 0040674 | |
| 2011-09-01 18:05 | jonalegriaesarte | Note Added: 0040691 | |
| 2011-09-01 18:05 | jonalegriaesarte | Status | resolved => closed |
| 2011-09-01 18:05 | jonalegriaesarte | Fixed in Version | => 3.0MP3 |
| 2011-09-07 11:27 | hgbot | Checkin | |
| 2011-09-07 11:27 | hgbot | Note Added: 0040778 | |
| 2011-09-07 11:27 | hgbot | Status | closed => resolved |
| 2011-09-07 11:27 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^] => http://code.openbravo.com/erp/devel/pi/rev/fe4778854fbd50e58ed5a32fec9a937665bc278f [^] |
| 2011-09-07 17:58 | egoitz | Note Added: 0040811 | |
| 2011-09-07 17:58 | egoitz | Status | resolved => closed |
|
Notes |
|
|
(0040640)
|
|
dbaz
|
|
2011-08-31 20:04
|
|
Notice that the issue is only reproducible the 31th of each month (if the month has 31 days).
The problem is in the Date object construction way.
JSDate.setFullYear(fullYear);
JSDate.setMonth(month - 1); (javascript months goes from 0 to 11)
JSDate.setDate(day);
Let's assume that we are in 31-08-2011 and we enter the date 01-09-2011
The Date object starts from 'today' date: 31-08-2011
setFullYear puts the year to 2011, so we have 31-08-2011
setMonth changes the month to September, so we have 31-09-2011 which really is 01-10-2011
setDate sets the day to 1, so we have 01-10-2011 |
|
|
|
(0040641)
|
|
hgbot
|
|
2011-08-31 20:07
|
|
Repository: erp/devel/pi
Changeset: 144538d99c984f1937d34fa18ed61943090f2030
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Aug 31 20:06:35 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/144538d99c984f1937d34fa18ed61943090f2030 [^]
Fixed issue 18395: Now date is right calculated also the 31th of each month
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
---
|
|
|
|
|
|
|
|
(0040691)
|
|
jonalegriaesarte
|
|
2011-09-01 18:05
|
|
|
|
|
(0040778)
|
|
hgbot
|
|
2011-09-07 11:27
|
|
Repository: erp/devel/pi
Changeset: fe4778854fbd50e58ed5a32fec9a937665bc278f
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Aug 31 20:06:35 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fe4778854fbd50e58ed5a32fec9a937665bc278f [^]
Fixed issue 18395: Now date is right calculated also the 31th of each month
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
---
|
|
|
|
(0040811)
|
|
egoitz
|
|
2011-09-07 17:58
|
|
|