I am looking for a way to schedule time-based events on my server operating in UTC time.
For the user interface, I need to input 2 parameters:
- The local time when the scheduled event should trigger
- The timezone offset
Instead of displaying timezone names that can slow down page loading and are unnecessary, I prefer not to include them.
I have explored the moment library but couldn't find a direct method to retrieve the timezone name from the timezone offset. The API moment.tz.names()
provides a list of all timezones.
Is there an API that could return something like
moment.tz.name('330') = 'Asia/Kolkata'
Additionally, if such a solution exists, would it also take care of any DST (Daylight Saving Time) related issues?