      var adjustedDate = new Date(now.getTime() - offset)
        var formattedDate = adjustedDate.toISOString().substring(0, 16) // For minute precision
        var datetimeField = document.getElementById('xtime')
        datetimeField.value = formattedDate
    }

    function saveConfig() {
        var req = new XMLHttpRequest()
        req.open('POST', '/setconfig/')
        var json = {
            //'TIMEZONE':parseInt(document.getElementById('timezone').value),
            'TIMEZONE': 0,
            '