How to convert a string UTC date to the current date on the computer of the user?
Good evening. The essence of the problem is the following:
send Ajax API
- get a response in widc array of objects
- each object in this array has the date field with a string date value in UTC format
How can I convert this value to get the current date and time according to the time zone of the user. That is, if the user visits a page, for example, United States city new York, he received the current date and time in the city of new York, and when it does, for example, from Perm, it would receive the current date and time in Perm?