Skip to content

Conversation

@Rdkang
Copy link

@Rdkang Rdkang commented Jun 4, 2025

Brief summary

A setting to choose the date format to use in the UI.
I implemented the same functionality that exists on the audiobookshelf server settings.

Which issue is fixed?

Fixes #637

Pull Request Type

Android and IOS
mainly affects the frontend

In-depth Description

Allows the user to choose the date format for the app to display the
added time, birth time, modified time and finished time

How have you tested this?

Tested using Android 15 device emulator and Google Pixel 7.

Screenshots

settings overview
settings overview
settings options
settings options
book with added date
book added on
book with finished date
finished date

dateFormatOptionItems() {
return [
{
text: 'MM/DD/YYYY',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These strings should be able to be localized

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see, it doesn't look like that string is being localized on the server side either.

Do you know how it should be done? I'm happy to update it if there's a better way.

// return !this.isMissing && !this.isInvalid && !this.isStreaming && (this.numTracks || this.recentEpisode)
},
dateFormat() {
return this.store.state.deviceData?.deviceSettings?.dateFormat || 'MM/dd/yyyy'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right way to get the dateFormat setting? @nichwall

@Rdkang Rdkang requested a review from nichwall June 14, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App doesn't use the user chosen date format on the server

2 participants