Skip to content

Commit

Permalink
fix(table): fixed nb locale for table datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Feb 2, 2024
1 parent 53c2d03 commit 29e5e58
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,17 @@ export function TableCell(props: TableCellProps) {
onChange={(date) => updateItem(column.data, date, 'datetime')}
/>
) : value ? (
DateTime.fromISO(value).toLocaleString({
day: '2-digit',
month: '2-digit',
year: '2-digit',
hour: '2-digit',
minute: '2-digit',
hourCycle: 'h23',
})
DateTime.fromISO(value).toLocaleString(
{
day: '2-digit',
month: '2-digit',
year: '2-digit',
hour: '2-digit',
minute: '2-digit',
hourCycle: 'h23',
},
{ locale: 'nb' }
)
) : (
'-'
)}
Expand Down

0 comments on commit 29e5e58

Please sign in to comment.