javascript timezone converter

后端 未结 2 512
广开言路
广开言路 2020-12-22 12:21

I need a way to convert times in the future to different timezones without relying on the user\'s computer time.

At registration time, the user supplies his timezone

2条回答
  •  一个人的身影
    2020-12-22 12:35

    To don't depend on the user's clock timezone, I think the best approach is to do conversions in the server side.

    There's a good question here in the SO that covers daylight saving time and javascript Date object: Daylight saving time and time zone best practices

提交回复
热议问题