I'm running a local server with Node Js. I want to set the timezone for Europe, Rome but it doesn't seem to be working.
I installed: $ npm install time
Added this to my code:
var time = require('time');
var now = new time.Date();
now.setTimezone("Europe/Rome");
But when I use it it shows as (UTC +0):
var time = req.body.created_at = new Date().toISOString().replace(/T/, ';').replace(/\..+/, '')+ ';';