Help with getHour and timeZone

Hi guys! I have a problem with the function and the time I got when I generate the “date” with this:

app.all(/${process.env.INFORMADOLAR}, function(req, res)
var today = new Date();
var date = today.getUTCDate()+’-’+(today.getUTCMonth()+1)+’-’+today.getUTCFullYear();
var time = today.getUTCHours().toLocaleString(‘es-AR’, { timeZone: ‘America/Argentina/Buenos_Aires’ }) + “:” + today.getUTCMinutes().toLocaleString(‘es-AR’, { timeZone: ‘America/Argentina/Buenos_Aires’ });
var dateTime = date+’ '+time;
getDolarBNA((dolarBNA) => getCCL((dolarccl) => getBlueCronista((blueCron) => getDolarMEP((mep) =>

var status = 

//📅+dateTime +

When I want to get the Argentine hour (now 14:08) but when I execute it I got: +3 hours
For example 17:08
What I did wrong??

The default for time is UTC. Argentina runs on UTC -3. You might want to subtract three hours from your time.

1 Like

I should so subtract 3 on hours? nothing more?

That should be it.

1 Like

Thank you! You save me :slight_smile:

1 Like