Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4869

Wrong time on request body

$
0
0

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

Selection_222

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

Read full topic


Viewing all articles
Browse latest Browse all 4869

Trending Articles