Skip to content

fix(ui): use navigator.language instead of hardcoded en-IN locale in LiveClock#663

Merged
aryandas2911 merged 2 commits into
aryandas2911:mainfrom
shabnam311:fix/liveclock-hardcoded-locale
May 19, 2026
Merged

fix(ui): use navigator.language instead of hardcoded en-IN locale in LiveClock#663
aryandas2911 merged 2 commits into
aryandas2911:mainfrom
shabnam311:fix/liveclock-hardcoded-locale

Conversation

@shabnam311
Copy link
Copy Markdown
Contributor

Summary

Fixes #657

Changes

  • Replaced hardcoded "en-IN" locale with navigator.language in LiveClock.jsx
  • The clock now respects each user's browser/system locale preference
  • Non-Indian users will see time in their correct regional format

Files Changed

  • frontend/src/components/Dashboard/LiveClock.jsx (1 line changed)

Type

  • Bug fix

shabnam311 and others added 2 commits May 18, 2026 10:53
…LiveClock

Replaced hardcoded Indian locale string en-IN with navigator.language so the clock respects each user's browser/system locale.
Fixes aryandas2911#657
@aryandas2911 aryandas2911 merged commit 28476da into aryandas2911:main May 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] LiveClock hardcoded to en-IN locale — shows wrong time format for non-Indian users

2 participants