Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use the user's system locale for date formatting #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samhoooo
Copy link

fix issue #26

Instead of hardcoding Norwegian locale, use the user's system locale for date formatting

@pattang56892
Copy link

Hi there, this is done.
All you have to do is:

go to the file: "Sidebar.vue"; and
Ensure you change "no" to "en-US" as shown below, and it will convert the locale from Norwegian to English.
{{ chat.createdAt.toLocaleDateString('en-US', { day: '2-digit', month: 'short', weekday: 'long', hour: '2-digit', minute: '2-digit', second: '2-digit', }) }}

image

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.

2 participants