Ayeantics commited on
Commit
b0e1d6e
·
verified ·
1 Parent(s): 9a8116c

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -1
server.js CHANGED
@@ -2,6 +2,7 @@ const express = require('express');
2
  const http = require('http');
3
  const proxy = require('express-http-proxy');
4
  const socketIo = require('socket.io');
 
5
 
6
  const app = express();
7
  const server = http.createServer(app);
@@ -39,7 +40,7 @@ app.use('/api', (req, res, next) => {
39
  logAndEmit(logMessage);
40
  }
41
 
42
- const timestamp = new Date().toISOString();
43
  const requestData = {
44
  requestNumber: ipRequestCounts[req.headers['x-forwarded-for'] || req.connection.remoteAddress],
45
  ip: req.headers['x-forwarded-for'] || req.connection.remoteAddress,
 
2
  const http = require('http');
3
  const proxy = require('express-http-proxy');
4
  const socketIo = require('socket.io');
5
+ const moment = require('moment-timezone');
6
 
7
  const app = express();
8
  const server = http.createServer(app);
 
40
  logAndEmit(logMessage);
41
  }
42
 
43
+ const timestamp = moment().tz("Asia/Tbilisi").format();
44
  const requestData = {
45
  requestNumber: ipRequestCounts[req.headers['x-forwarded-for'] || req.connection.remoteAddress],
46
  ip: req.headers['x-forwarded-for'] || req.connection.remoteAddress,