Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0018395 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | critical | always | 2011-08-31 10:45 | 2011-09-07 17:58 | |||
Reporter | egoitz | View Status | public | |||||
Assigned To | dbaz | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0MP3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | fe4778854fbd | ||||
Projection | none | ETA | none | Target Version | 3.0MP3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 3.0MP2 | SCM revision | ||||||
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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0040640) dbaz (viewer) 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 (developer) 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 --- |
(0040674) hudsonbot (viewer) 2011-09-01 14:35 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6b7e3ac301b9 [^] Maturity status: Test |
(0040691) jonalegriaesarte (viewer) 2011-09-01 18:05 |
Verified |
(0040778) hgbot (developer) 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 (viewer) 2011-09-07 17:58 |
verified |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |