openclaw - 💡(How to fix) Fix Apple Reminder 日期格式解析错误 — MM/DD/YYYY 被解析成 2010 年 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#80097Fetched 2026-05-11 03:18:43
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Author
Timeline (top)
closed ×1commented ×1mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

问题描述

通过 OpenClaw 的 create_reminder 工具创建提醒时,若日期格式使用 MM/DD/YYYY(例如 05/06/2026 08:00 PM),macOS 会将其错误解析为 2010年12月17日,而不是 2026年5月6日。

环境

  • OpenClaw(版本未知)
  • macOS(日期格式地区设置可能为非美国)

复现步骤

  1. 调用 create_reminder 工具
  2. dueDate 传入 05/06/2026 08:00 PM 格式
  3. Apple Reminders 中显示的日期为 2010年12月17日

期望行为

日期应正确解析为 2026年5月6日 20:00。

根本原因推测

可能原因:

  • DateComponentsFormatterDateFormatterMM/DD/YYYY 格式年份解析有误
  • macOS 将年份后两位(26)识别为1900年代,导致显示为2010年
  • 地区格式不同(MM/DD vs DD/MM)导致月日互换后再出错

建议修复

创建提醒时:

  • 使用明确的中文格式:2026年5月6日 20:00(无歧义)
  • 或使用 ISO 8601:2026-05-06T20:00:00
  • 文档中明确标注推荐的日期格式,避免使用纯数字日期字符串

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Apple Reminder 日期格式解析错误 — MM/DD/YYYY 被解析成 2010 年 [1 comments, 2 participants]