Skip to content

Commit

Permalink
chore(i18n): date format
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Nov 11, 2024
1 parent 62c964f commit 897097a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const CheatInfoTableView: FC<CheatInfoTableViewProps> = (props) => {
<Table.Tr key={`${item.submission?.time}@${i}`}>
<Table.Td ff="monospace">
<Badge size="sm" color="indigo">
{dayjs(item.submission?.time).locale(locale).format('SL LTS')}
{dayjs(item.submission?.time).locale(locale).format('SL HH:mm:ss')}
</Badge>
</Table.Td>
<Table.Td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Submissions: FC = () => {
</Table.Td>
<Table.Td ff="monospace">
<Badge size="sm" color="indigo">
{dayjs(item.time).locale(locale).format('SL LTS')}
{dayjs(item.time).locale(locale).format('SL HH:mm:ss')}
</Badge>
</Table.Td>
<Table.Td>
Expand Down
1 change: 1 addition & 0 deletions src/GZCTF/ClientApp/src/utils/I18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const shortLocalFormat = new Map<string, ShortLocalFormat>([
['ko', { SL: 'MM/DD', SLL: 'YY/MM/DD' }],
['ru', { SL: 'DD.MM', SLL: 'DD.MM.YY' }],
['de', { SL: 'DD.MM', SLL: 'DD.MM.YY' }],
['id', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
['fr', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
['es', { SL: 'DD/MM', SLL: 'DD/MM/YY' }],
])
Expand Down

0 comments on commit 897097a

Please sign in to comment.