Please, help! I’m triyng to convert a date timezone, but I got stock. In my data a have UTC date, but I want to show it as UTC-4 in a chart.js label.
• If I use fortmatDateTimezone, it doesn’t make any change.
• If I use convertDateTimezone, it works, but I can not add a second parameter to format the date. So I then involve it into fortmatDate, but it changes date to the original UTC again.
Maybe am I doing something wrong?
This is my code:
return collections['c1d838e9-9c03-4903-ad1e-14fda7d37f54']?.['data'].map(item =>
pluginFormulas['832d6f7a-42c3-43f1-a3ce-9a678272f811']['formatDate'](
pluginFormulas['832d6f7a-42c3-43f1-a3ce-9a678272f811']['convertDateTimezone'](
item.mes,
'America/Santo_Domingo',
false
),
'MMMM',
'es'
)
)