Angular -strap timepicker saves time

I use angular -strap to save the date and time for the project, but the displayed time is not saved. I can not find any information anywhere to fix this problem. Who else has this problem ?! Screenshot

+4
source share
1 answer

The value 2015-04-21T09:00:00.000Zmeans that we are talking about a specific point in time, designated as β€œApril 21. in 2015, at 9 o’clock UTC”. That is, it includes the time zone indicated by the end Z. A user using a timepicker that automatically uses represents this value to the user, exactly the same point in time , but accepts the time zone at which his system is taken into account.

TL DR The value is correct. Use this value for calculations and save this value in your database. Whenever you present this value to the user, convert it to your time zone.

0
source

Source: https://habr.com/ru/post/1545895/


All Articles