Hey there! I am using Flatpicker to let users set time on horarioPartida and before calling .save() my object looks like this:

But when I check the request payload the horarioPartida looks like this:
What is setting the wrong time on the database.
Inside my application route I have configured default runtime locale/timeZone:
beforeModel() {
this.moment.setLocale('pt-br');
this.moment.setTimeZone('America/Sao_Paulo');
}
Is this expected? What should I do to get the right time zone? Do I have an option to set this while Ember is serializing dates?
Thanks in advance!
2 posts - 2 participants
