mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
7baa4cf20a
Closes #170
7 lines
351 B
JavaScript
Executable file
7 lines
351 B
JavaScript
Executable file
// This file is included only when there is no info about timezone in users's chandler session
|
|
|
|
xhr = new XMLHttpRequest();
|
|
xhr.open("POST", "/iapi/timezone", true);
|
|
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
|
xhr.onload = () => {window.location.reload()};
|
|
xhr.send('timezone=' + new Date().getTimezoneOffset());
|