Update server.js
Browse files
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 =
|
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,
|