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

STCOM-1150v2 #2036

Open
wants to merge 5 commits into
base: b10.3
Choose a base branch
from
Open

STCOM-1150v2 #2036

wants to merge 5 commits into from

Conversation

JohnC-80
Copy link
Contributor

This PR checks that the moment's active locale matches the lowercase version of the locale passed through props/intl before using its static locale. If not, it falls back to getting a localized time format from Browser Intl API.

moment doesn't have an en-SE locale.. it falls back to en if it's attempted using moment.locale('en-SE') As far as time-picker is concerned, the discrepancy between them is that en-SE is a 24 hour format, but en is 12 hour... accurate formatting info is provided from browser INTL API, however, so that's what we can fall back to.

@JohnC-80 JohnC-80 changed the title Stcom 1150v2 STCOM-1150v2 Apr 20, 2023
@github-actions
Copy link

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit bab6d97. ± Comparison against base commit ea50095.

@github-actions
Copy link

BigTest Unit Test Statistics

       1 files  ±0         1 suites  ±0   11s ⏱️ ±0s
1 304 tests ±0  1 298 ✔️ ±0  6 💤 ±0  0 ±0 
1 307 runs  ±0  1 301 ✔️ ±0  6 💤 ±0  0 ±0 

Results for commit bab6d97. ± Comparison against base commit ea50095.

@sonarcloud
Copy link

sonarcloud bot commented Apr 20, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell D 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants