summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/visitor_timezone.js
AgeCommit message (Collapse)Author
2020-10-08[FIX] website: get visitor tz directly from cookieDavid Beguin
Since tz is now (from 6eb4762fee20a158023d774a90e7ee90c2cacec5) added to the client cookie, visitor timezone can directly be set when creating the visitor, using the request. Jstz can be removed as even for module in ENT that used this lib, we can get the timezone using Intl lib instead. This will also reduce the number of request made only to get visitor's timezone. This commit reverts part of 17e84025239ed78716ed5d5d92c0ee0e10fbfb29 Linked ENT PR: 12963 Task ID: 2333825 closes odoo/odoo#57103 Related: odoo/enterprise#12963 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-20[IMP] website : store visitor timezoneDavid Beguin
In order to be able to send push notifications using recipients timezone, the visitor timezone is now stored in DB. The visitor timezone is only updated once, when found_visitor_timezone cannot be found in localstorage. Once the timezone is updated, found_visitor_timezone is added to localstorage. Task ID : 1936643 PR #34973