Safari / iOS JavaScript `new Date("2026-11-24 10:00:00")` Returns `Invalid Date`
Safari strictly enforces ISO 8601 `T` separator (`2026-11-24T10:00:00Z`), rejecting space-separated dates.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Safari / iOS JavaScript `new Date("2026-11-24 10
Platform: Web
Common Root Causes:
- Safari strictly enforces ISO 8601 `T` separator (`2026-11-24T10:00:00Z`), rejecting space-separated dates.
Interactive Diagnostic Checklist
Verified Solutions:
- Always format ISO 8601 strings with `T` and explicit `Z` or timezone offset.
Safe Diagnostic Command:
Test date strings in WebKit/Safari
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Safari strictly enforces ISO 8601 `T` separator (`2026-11-24T10:00:00Z`), rejecting space-separated dates. Recommended diagnostic: `Test date strings in WebKit/Safari`. Remediation: Always format ISO 8601 strings with `T` and explicit `Z` or timezone offset.
Worked Examples
- Run `Test date strings in WebKit/Safari` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-web-safari-date-parse-nan · Independently verified: 2026-11-25