LateralThoughts / systemi

Business As Usual
3 stars 2 forks source link

When generating activity, dates are shift by one day before #16

Closed vincentdoba closed 9 years ago

vincentdoba commented 9 years ago

Steps to reproduce :

Expected request body, field days[0]/day :

"day":"2014-10-01T22:00:00.000Z",

Actual request body, field days[0]/day

"day":"2014-09-30T22:00:00.000Z",
vincentdoba commented 9 years ago

The classic UTC/Local problem. Dates are displayed in Local and send to backend as UTC in angular cra model.

The idea should be to use Date instead of DateTime in frontend side.

vincentdoba commented 9 years ago

Now all the dates are in UTC in javascript

Example of date send :

"day":"2014-09-25T00:00:00.000Z"