Choose real city-based time zones and convert a specific local time using the offset in effect on that date.
New York-
Shanghai-
Method
Time standard and daylight saving rules
City choices use IANA time-zone identifiers. The applicable offset is resolved for the selected date, so daylight saving transitions are not treated as a permanent offset.
Local times skipped during a spring-forward transition are reported as invalid. Historical and future rules depend on the time-zone database shipped with the browser.