mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
Use locale string for change request time badge.
This commit is contained in:
parent
0ea006f72c
commit
cb02b8af07
@ -8,6 +8,7 @@ import Close from '@mui/icons-material/Close';
|
||||
import ErrorIcon from '@mui/icons-material/Error';
|
||||
import PauseCircle from '@mui/icons-material/PauseCircle';
|
||||
import { HtmlTooltip } from 'component/common/HtmlTooltip/HtmlTooltip';
|
||||
import { useLocationSettings } from 'hooks/useLocationSettings';
|
||||
|
||||
interface IChangeRequestStatusBadgeProps {
|
||||
changeRequest: ChangeRequestType | undefined;
|
||||
@ -59,7 +60,10 @@ export const ChangeRequestStatusBadge: VFC<IChangeRequestStatusBadgeProps> = ({
|
||||
);
|
||||
case 'Scheduled': {
|
||||
const { schedule } = changeRequest;
|
||||
const scheduledAt = new Date(schedule.scheduledAt).toLocaleString();
|
||||
const { locationSettings } = useLocationSettings();
|
||||
const scheduledAt = new Date(schedule.scheduledAt).toLocaleString(
|
||||
locationSettings.locale,
|
||||
);
|
||||
|
||||
const { color, icon, tooltipTitle } = (() => {
|
||||
switch (schedule.status) {
|
||||
|
Loading…
Reference in New Issue
Block a user