I want to retrieve the browser timezone offset into python backend. Somethign like this, but it doesn't work:
odoo.define('', function (require) {
"use strict";
require('web.dom_ready')
var browser_tz_date = new Date();
var browser_tz_offset = moment().utcOffset();
var rpc = require('web.rpc');
function doIt() {
rpc.query({
model: 'project.task',
method: '_set_browser_time',
args:[]
})
}
})