forked from mirrors/Scribe.js
Add /api/timezoneOffset
This commit is contained in:
parent
07cf1ff77e
commit
233251916b
1 changed files with 14 additions and 0 deletions
|
@ -236,6 +236,20 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* /api/timezone
|
||||||
|
*
|
||||||
|
* Send the server timezone offset
|
||||||
|
*/
|
||||||
|
webPanel.get('/api/timezoneOffset', function (req, res) {
|
||||||
|
|
||||||
|
res.status(200).json({
|
||||||
|
timezoneOffset : (new Date()).getTimezoneOffset()
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
return webPanel;
|
return webPanel;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue