roed314 / seminars

Listing of online math seminars
GNU Affero General Public License v3.0
41 stars 15 forks source link

Time zone stored in cookie #922

Open rbommel opened 2 years ago

rbommel commented 2 years ago

Today I was surprised that so many talks in some conference next week are so incredibly late. With the help of an unnamed collaborator, we found out that the browser time zone is stored in a cookie, so research seminars was in a different time zone than my computer when not logged in. My suggestion would be to not store the time zone in the cookie and always request it from the browser, as some computers might change their time zone over time.

kmccurley commented 2 years ago

Just a comment from another interested user: I happen to have built a web app that will show times of a talk both in local time and the time of the remote user. See FSE program for example. The javascript toolkit I used was luxon, which is quite good. If the database stores the time in one timezone, you can easily change the date and time to the timezone of the user. It's particularly complicated because you have to calculate and display the date as well as the time, and take into account that they may change to daylight savings at different times on two continents. As we return to traveling the globe, this could be useful to improve.