PhoenixKit 2.13.9: Time zones that follow daylight saving
PhoenixKit 2.13.9 stores time zones as names such as Europe/Helsinki instead of a fixed offset, so times on screen follow daylight saving. It also stops sending saved integration secrets back to the browser.
An account set from Helsinki in winter stored +2 and showed times an hour off all summer. The time zone pickers now list named zones. Existing offsets are kept and still read as fixed offsets until someone picks a zone. When the browser’s zone differs from the account’s, the user gets a Check your timezone notice with a button to use the detected zone, and one notification per new zone. Account settings now have their own page at /profile/settings.
Integration and authorization forms put saved API keys and secrets into the page when editing. The field now stays empty, with a placeholder saying a secret is already configured and that leaving it blank keeps it.
The media viewer no longer forces square images, and Estonian and Russian translations are fixed.
Upgrading
Run mix phoenix_kit.update for migration V181, which widens the time zone column without rewriting any rows.
Full release notes: PhoenixKit 2.13.9
2.13.9 · 24 August 2026
Timezones move from a bare offset to full IANA identifiers, so DST is tracked instead of frozen at whatever the account’s offset was when it was set; saved integration secrets stop round-tripping into the setup form; Estonian and Russian translations get another pass (#748, #749, #750).
Added
phoenix_kit_users.user_timezonenow holds IANA identifiers (Europe/Helsinki) instead of a bare offset ("2"), so a summer-set timezone no longer reads an hour behind once winter DST kicks in.PhoenixKit.Utils.TimeZonestill reads existing offset rows as fixed offsets — nothing is migrated in place, only the column widens (V181). New/profile/settingspage for setting it (#750).
Fixed
- The “you haven’t set a timezone” banner fired for almost every signed-in
user. It compared the account’s blank preference against the site
default using identifier-only equality, but a fresh/unmigrated install’s
site default is the legacy offset
"0", which can never match an IANA id. AddedTimeZone.effectively_same?/2, which compares effective UTC offsets when either side is a legacy offset (#750, post-merge review). - A hand-edited
user_settings_pathoverride could resolve to/users/log-out, turning a “Settings” link into a silent sign-out.Routes.user_settings_path/1now runs the override through the sameusable_candidate?/1guard asmain_page_path/0(post-merge review). - Media viewer forced a 1:1 aspect ratio regardless of the actual image; settings page content could overflow its container (#750).
- Saved integration secrets (API keys, bot tokens) were decrypted and
rendered straight into the setup form’s
value=attribute on every edit. The field now renders empty with an “already configured” placeholder instead of the credential; submitting it blank still keeps the existing secret rather than wiping it (#748).
i18n
- Estonian translation gaps filled; a batch of Russian strings that were fuzzy-matched onto the wrong English source corrected (#749).
PhoenixKit 2.13.9. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.