summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
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/static/src/xml/base.xml
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/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions