1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

Removed toLocaleString from ChangeRequest

This commit is contained in:
Gastón Fournier 2024-09-02 16:49:41 +02:00
parent 49d1950ca4
commit 53764cab4f
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ export const ChangeRequestScheduledDialog: FC<
There is a scheduled time to apply these changes set for{' '}
<strong>
<br />
{`${new Date(scheduledTime).toLocaleString()}`}
{`${new Date(scheduledTime)}`}
</strong>
</StyledAlert>
<Typography variant={'body1'}>{message}</Typography>

View File

@ -87,7 +87,7 @@ export const ScheduleChangeRequestDialog: FC<
setError(undefined);
if (date < new Date()) {
setError(
`The time you provided (${date.toLocaleString()}) is not valid because it's in the past. Please select a time in the future.`,
`The time you provided (${date}) is not valid because it's in the past. Please select a time in the future.`,
);
}
setSelectedDate(date);

View File

@ -59,7 +59,7 @@ export const ChangeRequestStatusBadge: VFC<IChangeRequestStatusBadgeProps> = ({
);
case 'Scheduled': {
const { schedule } = changeRequest;
const scheduledAt = new Date(schedule.scheduledAt).toLocaleString();
const scheduledAt = new Date(schedule.scheduledAt);
const { color, icon, tooltipTitle } = (() => {
switch (schedule.status) {