zeusops / operationbot

A bot for handling events on the Zeusops discord server
GNU General Public License v3.0
7 stars 4 forks source link

Switch to daylight saving time automatically #102

Closed Gehock closed 1 year ago

Gehock commented 2 years ago

Currently switching to DST and back is done by hand twice a year by editing the config files. This causes confusion if the edit is missed by a few days, or if events have been created for times both before and after the DST change. After making events timezone-aware in #97, they could automatically show the correct DST/non-DST timezone.

Python seems to support DST natively to some extent. There is also the pytz package.

Gehock commented 1 year ago

Fixed in f3c821bd1127ab15349bb925cb7d17e5f60fbcf1 and 251fec93ecd418ecbd3c105c59e66da4002a37e3.