fix(schedule): close absolute-time review gaps

This commit is contained in:
Tianyi Cui
2026-08-09 20:29:37 +08:00
parent b7ec8429a9
commit 139b4f421e
23 changed files with 220 additions and 29 deletions

View File

@@ -201,7 +201,7 @@ function parseOffsetInstant(value: string): number {
if (groups === undefined) {
throw new ScheduleInputError(
'invalid_rule',
'at must be a strict RFC 3339 date-time with an explicit Z or numeric offset.',
'at must use YYYY-MM-DDTHH:mm:ss with optional 1-3 digit fractional seconds and an explicit Z or numeric offset.',
)
}
const parts: CalendarParts = {

View File

@@ -29,7 +29,7 @@ export interface AtScheduleRecord {
readonly id: ScheduleId
/** Rule discriminator for an absolute one-shot reminder. */
readonly kind: 'at'
/** Trimmed user-authored reminder content. */
/** Trimmed reminder content supplied at creation. */
readonly prompt: string
/** Four-digit-year RFC 3339 UTC target. */
readonly scheduledAt: string