Skip to content

Commit

Permalink
Fixed date format for US locale
Browse files Browse the repository at this point in the history
  • Loading branch information
procivisAG committed Aug 20, 2024
1 parent 9c3b7e5 commit 04485c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@procivis/one-react-native-components",
"version": "0.1.29",
"version": "0.1.30",
"description": "Common Procivis ONE UI components for react-native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
1 change: 1 addition & 0 deletions src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const formatDateTime = (date: Date, locale?: string) => {
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour12: locale === 'en-US',
});
} catch {
return undefined;
Expand Down

0 comments on commit 04485c6

Please sign in to comment.