Converting timezones in javascript resulted in very strange results, am I doing something wrong or is it a bug?
问题 After isolating the problem in my current project .... I think something is not working currently with the Date object in javascript. But I don't want to be arrogant because maybe I am doing something wrong, is it a bug? or am I doning something wrong? I want to convert a date to diffrent time zone in javascript, I made this function: function ConvertToTimeZone(date, timezone) { let convertedTimeString = date.toLocaleString("en-US", {hour12: false, timeZone: timezone}) return new Date