(ANGULARJS) Entering [time] shows the local time when the normal date is given

Basically,

I received a date from my server, which when printed in the web console: Date 2016-05-04T09: 00: 00.000Z

Since im using AngularJs, I made a binding using an ng model with input time type.

Now the problem is, when I show the date on this entry, I do not see: 9:00 , but 5:00 (9:00 - 4:00) (I'm in the GMT -4 zone)

However, the date should not be universal time, but, as you can see, it is analyzed in local time. Any way to stop this?

+4
source share
1 answer

, / Date , ngModelOptions. . AngularJS []

.

<input type="time" ng-model-options="{ timezone: '-0400' }">

, . , UTC + 2, - UTC-4.

+4

All Articles