[PR #4493] [MERGED] Localize elapsed duration on sessions tables #4266

Closed
opened 2026-04-25 00:19:04 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4493
Author: @advplyr
Created: 7/15/2025
Status: Merged
Merged: 7/15/2025
Merged by: @advplyr

Base: masterHead: localize_durations


📝 Commits (1)

  • 99110f5 Localize elapsed duration on sessions tables

📊 Changes

3 files changed (+44 additions, -2 deletions)

View changed files

📝 client/pages/config/sessions.vue (+1 -1)
📝 client/pages/config/users/_id/sessions.vue (+1 -1)
📝 client/plugins/utils.js (+42 -0)

📄 Description

Brief summary

This is using the new Intl.DurationFormat to localize the listening times in the sessions table.

According to https://caniuse.com/mdn-javascript_builtins_intl_durationformat_format Intl.DurationFormat this is already widely available. If not, the old elapsed pretty time gets used.

Which issue is fixed?

Partial #3544


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4493 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `localize_durations` --- ### 📝 Commits (1) - [`99110f5`](https://github.com/advplyr/audiobookshelf/commit/99110f587a680f4a754bc70cecf3cdbfa41da5db) Localize elapsed duration on sessions tables ### 📊 Changes **3 files changed** (+44 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/pages/config/sessions.vue` (+1 -1) 📝 `client/pages/config/users/_id/sessions.vue` (+1 -1) 📝 `client/plugins/utils.js` (+42 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary This is using the new [Intl.DurationFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat) to localize the listening times in the sessions table. According to https://caniuse.com/mdn-javascript_builtins_intl_durationformat_format Intl.DurationFormat this is already widely available. If not, the old elapsed pretty time gets used. ## Which issue is fixed? Partial #3544 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:19:04 +02:00
adam closed this issue 2026-04-25 00:19:04 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4266