Skip to content

Commit a85cf59

Browse files
committed
got the ip time in milliseconds
1 parent c5bbb66 commit a85cf59

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,23 @@ app.get('/generate/:data', async (req, res) => { // Because URL PARAMS ARE CO
6464
console.log(atob(req.params.data));
6565
res.json({cookie: req.params.data})
6666
})
67-
67+
``
6868
app.get('/if-vpn/:data', async(req, res) => {
6969
const data = atob(req.params.data)
7070
// Timezone Stuff
7171
let options = {
7272
timeZone: data.timezone,
73-
year: 'numeric',
74-
month: 'numeric',
75-
day: 'numeric',
7673
hour: 'numeric',
7774
minute: 'numeric',
75+
month: 'numeric',
7876
second: 'numeric',
77+
year: 'numeric',
78+
day: 'numeric'
7979
},
8080
formatter = new Intl.DateTimeFormat([], options);
81-
console.log(formatter.format(new Date()));
81+
const stringTime = formatter.format(new Date());
82+
const IPtime = Date.parse(stringTime)
83+
console.log(IPtime)
8284
return res.json({message: "yay i work"})
8385
})
8486

0 commit comments

Comments
 (0)