Skip to content

Commit

Permalink
Merge branch 'ONE-3125-fix-date-format' into 'main'
Browse files Browse the repository at this point in the history
Fixed date format for US locale

Closes ONE-3125

See merge request procivis/one/one-react-native-components!131
  • Loading branch information
procivisAG committed Aug 20, 2024
2 parents 9c3b7e5 + 04485c6 commit fd2f69f
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 fd2f69f

Please sign in to comment.