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{' '}
|
There is a scheduled time to apply these changes set for{' '}
|
||||||
<strong>
|
<strong>
|
||||||
<br />
|
<br />
|
||||||
{`${new Date(scheduledTime)}`}
|
{`${new Date(scheduledTime).toLocaleString()}`}
|
||||||
</strong>
|
</strong>
|
||||||
</StyledAlert>
|
</StyledAlert>
|
||||||
<Typography variant={'body1'}>{message}</Typography>
|
<Typography variant={'body1'}>{message}</Typography>
|
||||||
|
@ -87,7 +87,7 @@ export const ScheduleChangeRequestDialog: FC<
|
|||||||
setError(undefined);
|
setError(undefined);
|
||||||
if (date < new Date()) {
|
if (date < new Date()) {
|
||||||
setError(
|
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);
|
setSelectedDate(date);
|
||||||
|
@ -59,7 +59,7 @@ export const ChangeRequestStatusBadge: VFC<IChangeRequestStatusBadgeProps> = ({
|
|||||||
);
|
);
|
||||||
case 'Scheduled': {
|
case 'Scheduled': {
|
||||||
const { schedule } = changeRequest;
|
const { schedule } = changeRequest;
|
||||||
const scheduledAt = new Date(schedule.scheduledAt);
|
const scheduledAt = new Date(schedule.scheduledAt).toLocaleString();
|
||||||
|
|
||||||
const { color, icon, tooltipTitle } = (() => {
|
const { color, icon, tooltipTitle } = (() => {
|
||||||
switch (schedule.status) {
|
switch (schedule.status) {
|
||||||
|
Loading…
Reference in New Issue
Block a user