summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.variables.less
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-03-09 14:01:47 +0100
committerRomain Derie <rde@odoo.com>2018-03-12 12:06:55 +0100
commitf02cd2977efa524b2acaa489bc5c114de69a8e88 (patch)
treeea1b745c61e005013ae9fe731910e52ee2be0144 /addons/web_editor/static/src/less/web_editor.variables.less
parent6f18af73e0ed04fc4211cb06bad551adb8d8824d (diff)
[FIX] website: use user timezone when handling date in page property
Before this commit: 1. The date would be displayed as UTC regardless of the user timezone. 2. The date would be sent to the backend in the browser timezone Now we correctly take the user timezone into consideration when handling date. Step to reproduce: - Install a second language where time format is: %H.%M.%S or %H,%M,%S (eg: Finnish, Bulgarian, Albanian ) - Set it as website default's language - Open page properties dialog on any page - The date looks correctly displayed but it is in fact the UTC hour and not the user timezone date. (eg: 2 hours missing in Albanian case, it would show '2018-Pri-05 02.11.02.' instead of '2018-Pri-05 04.11.02.') - If you save, it will crash since it will send the wrong date format to the backend that is expecting 'YYYY-MM-DD HH:MM:SS' format. Closes #23500, closes #23566
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.variables.less')
-rw-r--r--addons/web_editor/static/src/less/web_editor.variables.less6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.variables.less b/addons/web_editor/static/src/less/web_editor.variables.less
index c735967af86..9cd72eabae0 100644
--- a/addons/web_editor/static/src/less/web_editor.variables.less
+++ b/addons/web_editor/static/src/less/web_editor.variables.less
@@ -155,6 +155,12 @@
border-radius: 0;
}
+ .has-error {
+ .form-control {
+ border-color: @state-danger-text;
+ }
+ }
+
select.form-control {
.o-appearance(none);
background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPScxLjEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1 sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHdpZHRoPScyNCcgaGVpZ2 h0PScyNCcgdmlld0JveD0nMCAwIDI0IDI0Jz48cGF0aCBpZD0nc3ZnXzEnIGQ9J203LjQwNiw3L jgyOGw0LjU5NCw0LjU5NGw0LjU5NCwtNC41OTRsMC40MDYsMS40MDZsLTUsNC43NjZsLTUsLTQu NzY2bDAuNDA2LC0xLjQwNnonIGZpbGw9JyM4ODgnLz48L3N2Zz4=');