Skip to content

Commit

Permalink
Update timeApi.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mininxd authored May 27, 2024
1 parent 697e03b commit 24f2c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/timeApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = function(req) {
axios.get("https://time.akamai.com/")
.then(res => {
const time = moment(res.data);
const unix = res.data;
const gmtOffset = parseInt(req.query.gmt, 10);
const gmtOffset = req.query.gmt;
const unix = (res.data + (3600 * gmtOffset));
if (!gmtOffset) {
resolve({
"info": "query required",
Expand Down

0 comments on commit 24f2c99

Please sign in to comment.