Within my web application, users are prompted to choose a specific time that includes hours, minutes, and a designated timezone.
This user selection plays a crucial role in triggering a function on my webserver at the specified time. However, when a user selects 11:00 in the "Europe/London" timezone, I must consider the time disparity between my webserver's time and the selected time and timezone of the user. This necessitates calculating the UTC equivalent of the user's chosen time.
In this project, the actual date holds minimal relevance; what truly matters is adjusting the triggering hour and minute to ensure that the scheduled function on my webserver aligns with the exact time selected by the user.
If anyone has any advice on how to accomplish this task using momentjs, it would be greatly appreciated!