Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016301
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] B. User interfaceminorhave not tried2011-03-15 12:562012-08-09 11:55
ReporterplujanView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision2c4261aece14
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016301: Some invalid dates are misinterpred by the Date Filter

DescriptionIf I enter a non valid date, like 31st of February, it is wrongly interpreted as some day of March. See attach.
TagsNo tags attached.
Attached Filespng file icon screenshot-13.png [^] (7,359 bytes) 2011-03-15 12:56

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0021335 closedAugustoMauch Range must disappear after manually clearing the date filter field in the grid 

-  Notes
(0036128)
hgbot (developer)
2011-04-27 15:29

Repository: erp/devel/pi
Changeset: 2c4261aece1412ac92c5eafd37605442f60abdb3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Apr 27 15:28:55 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2c4261aece1412ac92c5eafd37605442f60abdb3 [^]

Fixes issue 16301: Some invalid dates are misinterpred by the Date Filter

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
---
(0036776)
hudsonbot (developer)
2011-05-12 13:27

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/c40e579fcd38 [^]

Maturity status: Test
(0036964)
dbaz (developer)
2011-05-13 13:03

If I put in the selection range, for example, 32-03-2011, nothing happens (it seems that the system realizes that the date is not correct)

If I put, 31-02-2011, it converts to 03-03-2011
If I put, 31-04-2011, it converts to 01-05-2011

So it seems that allow values are to 31-XX and then if the month doesn't fit it moves to next month.
(0051035)
AugustoMauch (manager)
2012-07-31 16:55

I think that it is desirable that if the user enters 31-04-2011, the date is automatically converted to 01-05-2011. It is a very useful mistake to miscount the number of days in a month. If today is 29-04-2012 and I want to enter a date two days after today, I might enter 31-04-2012. That date does not exist, but 01-05-2012 does, and is the date meant by the user.

This behaviour is also used by the date parsing in javascript:

new Date(Date.parse("Apr 31, 2012"));
Tue May 01 2012 00:00:00 GMT+0200 (CEST)

new Date(Date.parse("Apr 32, 2012"));
Invalid Date
(0051192)
AugustoMauch (manager)
2012-08-09 11:55

I have talked to Rob Goris, and we have agreed that the current behaviour is correct, so the issue can be closed.

- Issue History
Date Modified Username Field Change
2011-03-15 12:56 plujan New Issue
2011-03-15 12:56 plujan Assigned To => mtaal
2011-03-15 12:56 plujan File Added: screenshot-13.png
2011-03-15 12:56 plujan Modules => Core
2011-03-16 08:23 alostale Target Version => 3.0RC6
2011-03-16 08:30 alostale Status new => scheduled
2011-04-04 10:31 mtaal Target Version 3.0RC6 => 3.0RC7
2011-04-27 15:29 hgbot Checkin
2011-04-27 15:29 hgbot Note Added: 0036128
2011-04-27 15:29 hgbot Status scheduled => resolved
2011-04-27 15:29 hgbot Resolution open => fixed
2011-04-27 15:29 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2c4261aece1412ac92c5eafd37605442f60abdb3 [^]
2011-05-12 13:27 hudsonbot Checkin
2011-05-12 13:27 hudsonbot Note Added: 0036776
2011-05-13 13:03 dbaz Note Added: 0036964
2011-05-13 13:03 dbaz Status resolved => new
2011-05-13 13:03 dbaz Resolution fixed => open
2011-05-13 13:29 mtaal Target Version 3.0RC7 => 3.0MP0
2011-05-16 08:57 alostale Status new => scheduled
2011-05-23 11:34 plujan Target Version 3.0MP0 => 3.0MP1
2011-06-22 19:41 dmitry_mezentsev Target Version 3.0MP1 => 3.0MP3
2011-08-31 09:48 mtaal Target Version 3.0MP3 => 3.0MP4
2011-09-19 09:16 mtaal Target Version 3.0MP4 => 3.0MP5
2011-10-25 08:00 mtaal Target Version 3.0MP5 => 3.0MP6
2011-11-15 10:21 iperdomo Target Version 3.0MP6 =>
2012-07-31 16:55 AugustoMauch Note Added: 0051035
2012-08-09 11:51 rgoris Relationship added related to 0021335
2012-08-09 11:55 AugustoMauch Status scheduled => resolved
2012-08-09 11:55 AugustoMauch Resolution open => fixed
2012-08-09 11:55 AugustoMauch Note Added: 0051192
2012-08-09 11:55 AugustoMauch Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker