Skip to content

Commit

Permalink
UnifiedHistory: Take locale into account in the time format (grafana#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eledobleefe authored Feb 21, 2025
1 parent ffb8ef8 commit f5e60b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useState } from 'react';
import { FieldType, GrafanaTheme2, store } from '@grafana/data';
import { Button, Card, IconButton, Space, Stack, Text, useStyles2, Box, Sparkline, useTheme2, Icon } from '@grafana/ui';
import { t } from 'app/core/internationalization';
import { formatDate } from 'app/core/internationalization/dates';

import { HISTORY_LOCAL_STORAGE_KEY } from '../AppChromeService';
import { HistoryEntry } from '../types';
Expand Down Expand Up @@ -139,7 +140,7 @@ function HistoryEntryAppView({ entry, isSelected, onClick }: ItemProps) {
))}
</div>
<Text variant="bodySmall" color="secondary">
{moment(time).format('h:mm A')}
{formatDate(time, { timeStyle: 'short' })}
</Text>
{sparklineData && (
<Sparkline
Expand Down

0 comments on commit f5e60b5

Please sign in to comment.