Overview
- Bug Type:
- Invalid timestamp/format
- Category:
- Error Handling & Input Validation
Definition
Date/time strings have ambiguous formats or timezone assumptions causing parse or logic errors.
How to fix Invalid timestamp/format?
Use strict ISO-8601; include timezone offsets; centralize parsing; add contract tests for time handling
Symptoms
Observable signs that may indicate Invalid timestamp/format:
- Parsing failures for locale-dependent date strings.
- Inconsistent results across time zones/offsets.
- Sorting/aggregation wrong due to string dates.
Example Errors:
- Invalid time value
- RangeError: Invalid time zone specified
- Date parsing failed
