Commit f183b80d authored by Yusei Tahara's avatar Yusei Tahara

erp5_web_renderjs_ui: Stop using <input type="date"> for date columns in...

erp5_web_renderjs_ui: Stop using <input type="date"> for date columns in listbox search editor because end users can't explicitly control string representation of Zope DateTime which supports various different kinds of string representations including with or without timezone that causes wrong filtering results.
parent 360acab2
...@@ -213,7 +213,12 @@ ...@@ -213,7 +213,12 @@
if (operator_default_list === NUMERIC) { if (operator_default_list === NUMERIC) {
if (query_dict.key.indexOf("date") !== -1) { if (query_dict.key.indexOf("date") !== -1) {
input_type = "date"; // input_type="date" forces end users to use a dash as date delimiter
// and it is not useful for ERP5 because Zope DateTime ignores
// timezone if date delimiter was a dash. Thus input_type="text" is
// better because end users can control string representation of
// DateTime by themselves. Also it is compatible with xhtml style.
input_type = "text";
} else { } else {
input_type = "number"; input_type = "number";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment