1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +01:00

feat: after to at (#10880)

This commit is contained in:
Mateusz Kwasniewski 2025-10-28 14:59:17 +01:00 committed by GitHub
parent 2823c94a38
commit dc87c125e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ export const MilestoneNextStartTime = ({
);
const text = projectedStartTime
? `Starting after ${formatSmartDate(projectedStartTime)}`
? `Starting ${formatSmartDate(projectedStartTime)}`
: 'Waiting to start';
return (

View File

@ -1,7 +1,7 @@
import { useState, useCallback } from 'react';
import { isPast, addMinutes } from 'date-fns';
import { formatSmartDate } from '../ReleasePlanMilestone/MilestoneNextStartTime.tsx';
import type { MilestoneStatus } from '../ReleasePlanMilestone/ReleasePlanMilestoneStatus.tsx';
import { formatDateYMDHM } from 'utils/formatDate.ts';
const MAX_INTERVAL_MINUTES = 525600; // 365 days
@ -94,7 +94,7 @@ export const useMilestoneProgressionForm = (
const nextMilestoneDate = addMinutes(startDate, total);
if (isPast(nextMilestoneDate)) {
const formattedDate = formatSmartDate(nextMilestoneDate);
const formattedDate = formatDateYMDHM(nextMilestoneDate);
newErrors.time = `Next milestone can't start in the past (${formattedDate})`;
}
}