Merge lp:~openerp-dev/openerp-web/6.1-opw-579979-msh into lp:openerp-web/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/6.1-opw-579979-msh |
Merge into: | lp:openerp-web/6.1 |
Diff against target: |
39 lines (+6/-6) 1 file modified
addons/web/static/lib/datejs/parser.js (+6/-6) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/6.1-opw-579979-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+128860@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of date/datetime parsing which goes failed when trailing 0 missed in value by parseExact.
If you have specified date/datetime format %dd/%mm/%yy %H:%M:%S and if you does not enter trailing 0 in value like 4/10/12 10:10:00 then it will interchange the month and date, it happens if you missed any trailing 0 in date or in time.
Reason :- Reason is that parse the date/datetime value using parseExact and if we missed trailing 0 then parseExact will fail and parse is called which will parse date/datetime in default format, so month and date is interchanged.
Thanks.
Unmerged revisions
- 2464. By Mohammed Shekha(Open ERP)
-
[FIX]Fixed the issue of date/datetime not parsed by parseExact if someone missed to enter trailing 0, like format is %dd/%mm/%yy and if he enters date 4/10/12 then parseExact will fail, and on fialing we have called parse method which parse the date/datetime in mm/dd/yy format, so due to this month and date is interchanged.