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:
parent
2823c94a38
commit
dc87c125e0
@ -74,7 +74,7 @@ export const MilestoneNextStartTime = ({
|
||||
);
|
||||
|
||||
const text = projectedStartTime
|
||||
? `Starting after ${formatSmartDate(projectedStartTime)}`
|
||||
? `Starting ${formatSmartDate(projectedStartTime)}`
|
||||
: 'Waiting to start';
|
||||
|
||||
return (
|
||||
|
||||
@ -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})`;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user