mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
Revert "Removed toLocaleString from ChangeRequest"
This reverts commit 53764cab4f
.
This commit is contained in:
parent
0e382ad817
commit
0521fc3e03
@ -52,7 +52,7 @@ export const ChangeRequestScheduledDialog: FC<
|
||||
There is a scheduled time to apply these changes set for{' '}
|
||||
<strong>
|
||||
<br />
|
||||
{`${new Date(scheduledTime)}`}
|
||||
{`${new Date(scheduledTime).toLocaleString()}`}
|
||||
</strong>
|
||||
</StyledAlert>
|
||||
<Typography variant={'body1'}>{message}</Typography>
|
||||
|
@ -87,7 +87,7 @@ export const ScheduleChangeRequestDialog: FC<
|
||||
setError(undefined);
|
||||
if (date < new Date()) {
|
||||
setError(
|
||||
`The time you provided (${date}) is not valid because it's in the past. Please select a time in the future.`,
|
||||
`The time you provided (${date.toLocaleString()}) is not valid because it's in the past. Please select a time in the future.`,
|
||||
);
|
||||
}
|
||||
setSelectedDate(date);
|
||||
|
@ -59,7 +59,7 @@ export const ChangeRequestStatusBadge: VFC<IChangeRequestStatusBadgeProps> = ({
|
||||
);
|
||||
case 'Scheduled': {
|
||||
const { schedule } = changeRequest;
|
||||
const scheduledAt = new Date(schedule.scheduledAt);
|
||||
const scheduledAt = new Date(schedule.scheduledAt).toLocaleString();
|
||||
|
||||
const { color, icon, tooltipTitle } = (() => {
|
||||
switch (schedule.status) {
|
||||
|
Loading…
Reference in New Issue
Block a user