[jira] [Commented] (OFBIZ-12201) In several locations the date-time localisation is NOT respected.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-12201) In several locations the date-time localisation is NOT respected.

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-12201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17312163#comment-17312163 ]

Jacques Le Roux commented on OFBIZ-12201:
-----------------------------------------

Here are some facts
 * Contrary to most other places you can't manually enter a date with another format than US (all branches) in find screens
 * In trunk (I guess after OFBIZ-12097) if you use a format like "01-03-2021 00:00:00" that would be near real French one (01/03/2021 00:00:00) it does not work. The issue is at OfbizUtil.js[350]: 
 {{var dateObj = Date.parseExact(initDate, ofbizTime);}}
 Weirdly if you change to
 {{var dateObj = Date.parseExact(initDate, dateFormat);}}
 In browsers debuggers the change is not taken in to account (this one was very weird and I stopped there)
 * You get the error above only in trunk. It's related to OFBIZ-12097
 * In R16 only you get this Javascript error:
{noformat}
Error parsing the date string: Extra/unparsed characters found in date: 21 00:00:00
 date string = 01-03-2021 00:00:00
 date format = yy-mm-dd jquery-ui-timepicker-addon.min-1.4.3.js:5:4881
 Error parsing the date/time string: Extra/unparsed characters found in date: 21
 date/time string = 01-03-2021 00:00:00
 timeFormat = HH:mm:ss
 dateFormat = yy-mm-dd jquery-ui-timepicker-addon.min-1.4.3.js:5:4881
{noformat}

 * R17 seems the most stable version, even if like other versions it does not allow to manually enter a date with another format than US

Outch!

> In several locations the date-time localisation is NOT respected.
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-12201
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12201
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL APPLICATIONS, ALL PLUGINS
>    Affects Versions: Release Branch 18.12, Release Branch 17.12, Trunk
>            Reporter: Jacques Le Roux
>            Priority: Major
>         Attachments: Image 003.png
>
>
> I did not search for all cases but here are some:
> ordermgr/control/FindRequest
> ordermgr/control/FindQuote
> ordermgr/control/findreturn
> accounting/control/findInvoices
> So it seems it's (mostly?) related to the find function.
> It's only about rendering the date in the field after picking it, the date-time picker is localised.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)