Sorry to keep spamming your thread. I don’t want to start anothe while there is so much in different topics, but I’m a bit stuck at the moment so hopefully @romanmg @sridharan.s or @jarrad can help me untangle this mess.
As explained above I need to have users in different timezones enter a time and date through a date picker that shows up exactly as they entered it while other users in different timezones see the same date and time.
This is what works:
User thing has field ‘timezone’ (example: User X @ UTC+2)
Date picker stores a date field as is. (21 September 9:00pm)
TimezoneDB converts from current user’s ‘timezone’ to UTC :
Another field calculates the offset from UTC to current user’s ‘timezone’
Output field serves:
1970-1-1 00:00 + UTC timestamp + offset timestamp
This works when the user changes timezones. The time stays the same but the real problem lies with the browser/system time.
When I change the time on my computer, every date field on the page automatically displays UTC in the browser’s timezone.
@kramwe 's blockspring block indeed converts a time to a specified timezone but the entry and output are different so that is confusing to the user.
As I said, little stuck here