Java Quartz-Scheduler across TimeZone

后端 未结 3 1625
孤街浪徒
孤街浪徒 2020-12-09 20:32

My server runs on Europe/Rome timezone -and this one is the default tz on the server-, I need to schedule jobs according the user\'s timezone, so, if a user, living on Paci

3条回答
  •  粉色の甜心
    2020-12-09 20:42

    Date doesn't carry any TZ data, and Daylight Savings Time is actually its own TZ (EST is Easter Standard Time, EDT is Eastern Daylight Savings Time). The only thing that may pe an issue is that some places, like Phoenix Arizona, do not recognize DST. Any time you need TZ data preserved, Calendar is the way to go.

提交回复
热议问题