My API is sending the correct dateTime, but the chrome is changing the hour.
Here is a print of dateTime changed on chrome
Here is a print from my Api, the response is ok
Here is a code.
getTurma(){
this.contrato = this.TurmaModel.getList({
filter:[{
property: 'Id',
operator: 'equal',
value: this.idTurma,
and: true
}],
includes: this.TurmaModel.includes
},(resp) =>{
this.turma = new this.TurmaModel(resp[0]);
this.turma.Horarios.forEach((value, index, array)=>{
let horarioInicial = value.HorarioInicial;
let horarioFinal = value.HorarioFinal;
let HorarioInicialStr = this.getHorarioInicialString(moment(horarioInicial));
let HorarioFinalStr = this.getHorarioFinalString(moment(horarioFinal));
value.HorarioInicialStr = HorarioInicialStr;
value.HorarioFinalStr = HorarioFinalStr;
})
})
}
On my resp, the dateTime is already changed...
My front end stack is:
"angular-input-masks": "^2.3.0",
"angular-sortable-view": "0.0.15",
"autoprefixer": "^6.3.6",
"babelify": "^6.1.2",
"browserify": "^13.0.0",
"css-mqpacker": "^5.0.1",
"cssnano": "^3.7.1",
"express": "^4.13.4",
"graceful-fs": "^4.1.3",
"gulp": "^3.9.1",
"gulp-clean-css": "^2.0.6",
"gulp-fn": "0.0.0",
"gulp-if": "^2.0.0",
"gulp-livereload": "^3.8.1",
"gulp-notify": "^2.2.0",
"gulp-postcss": "^6.1.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sourcemaps": "^2.0.0-alpha",
"gulp-sync": "^0.1.4",
"gulp-uglify": "^1.5.3",
"gulp-usemin": "^0.3.22",
"model-js": "^0.2.5",
"moment": "^2.14.1",
"open": "0.0.5",
"pluralize-words-ptbr": "https://github.com/keep-faith/pluralize-ptbr.git",
"postcss-import": "^8.1.2",
"postcss-nested": "^1.0.0",
"postcss-simple-vars": "^2.0.0",
"signalr-no-jquery": "^0.1.8",
"through": "^2.3.8",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.7.0"
Obs: On firefox, everything is ok, is showing the correct dateTime.
Obs 2: My application is runing for months, and I'm 100% sure that I did not change nothing to create this problem. It started this week.
Thanks