Problem formatting date

Hi!, i'm having a little problem with dates again, when trying to show in the frontend the date, it always shows a day less then what the actual date should be, (i'm in Brazil by the way)

Data saved in the database:
database

Data returned:
returned_data

How it's displayed:

This the code: {{due_date.formatDate('dd/MM/yyyy')}}

frontend

Wappler config:
wappler config

I even tried this: td>{{due_date.toUTCDate().formatDate('dd/MM/yyyy')}} but got the same result

Please check the following article, might be helpful:

Thanks @Teodor figured out what was wrong, i was not saving in the db the necessary UTC of my country and also my db connection was using the legacy UTC, changed to UTC, and now it's woking properly.

saving the data

saved data

displayed_data

1 Like