You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Global datetime timezone setter/resolver
* feat: Normalize to configured timezone in utils.toDatetime
* chore: setDatetimeTimezone tests
* style: Solve flake8 warnings
* docs: Note possible breaking behavioral change when plexapi.timezone is toggled
* refactor: Solve C901 flake8 error
* chore: Integration test for timezone awareness
* chore: Force a realod to get re-run datetime parsing with configure tz
* chore: Migrate tz tests from the server module to a less important video module as to not conflict with other tests
* Document tzdata requirement on systems that don't have it by default (e.g. alpine, windows)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: Handle case where toDatetime is called with format when the dt already has timezone info
* refactor: Keep `plexapi.DATETIME_TIMEZONE` and `utils.DATETIME_TIMEZONE` in sync (aliased)
* chore: Fix incorrect type assignment on timezone test
* fix: bool-like parsing in setDatetimeTimezone resolution
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: Stale DATETIME_TIMZONE ref
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* style: Unused import
* style: Resolve flake8 E501 line too long
* refactor: Use `utils.cast()` for partial config parsing
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
* refactor: Keep one reference to the configured timezone
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
* refactor: Re-export DATETIME_TIMEZONE
* fix: `DATETIME_TIMEZONE` desync when imported from `plexapi`
Re-exporting `plexapi.utils.DATETIME_TIMEZONE` stores a copy of the string at import time, which can cause descync if setDatetimeTimezone is later called.
Instead, we should dynamically load the `DATETIME_TIMEZONE` reference in a module-level `__getattr__`
* chore: Test to confirm plexapi and plexapi.utils `DATETIME_TIMEZONE` references stay in-sync
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
0 commit comments