Your dates are wrong.
DateGuard proves it.

Find timezone mistakes, epoch bugs, date arithmetic errors, ambiguous formats, and storage anti-patterns — before they silently corrupt your data.

$ clawhub install dateguard click to copy
dateguard scan
$ dateguard scan ./src
📅 DateGuard v1.0.0
 
Scanning 74 files across 4 directories...
 
  services/booking.js:23
    ✗ [CRITICAL] TZ-001: new Date() without timezone specification
    → Use explicit timezone (Intl.DateTimeFormat or dayjs.tz)
 
  utils/time.ts:45
    ⚠ [HIGH] EP-003: 32-bit Unix timestamp risks Y2038 overflow
    → Use 64-bit timestamps or ISO 8601 strings
 
  lib/scheduler.js:67
    ⚠ [HIGH] DA-002: Hardcoded 365 days/year (ignores leap years)
    → Use date library for year arithmetic
 
  components/date.tsx:12
    ● [MEDIUM] NF-001: Ambiguous date format MM/DD/YYYY
    → Use ISO 8601 (YYYY-MM-DD) for unambiguous dates
 
  models/event.ts:89
    ○ [LOW] ST-004: Date stored as locale-dependent string
    → Store as ISO 8601 or Unix epoch
 
  ────────────────────────────────────────────────
  Files scanned: 74  |  Issues: 1 critical  2 high  1 medium  1 low
  Score: 64/100 (Grade: D)
 
  Run dateguard scan --fix to apply auto-fixes, or dateguard report for full HTML report.

Bad date handling doesn't just break — it corrupts silently.

Timezone-naive dates. Hardcoded month lengths. Y2038 time bombs. String-compared timestamps. Millisecond/second epoch confusion. Locale-dependent formatting that works in dev but breaks in production.

When the off-by-one hits production at 2 AM on DST changeover, it started here. DateGuard scans your entire codebase for date/time anti-patterns so your timestamps are trustworthy.

90
Detection patterns
6
Check categories
All
Languages supported
100%
Local — zero telemetry

What DateGuard Catches

90 checks across 6 categories, covering every aspect of date and time handling.

TZ
🌍

Timezone Handling

Detects missing timezone in date creation, naive datetime operations, UTC not specified, timezone conversion errors, and DST-unsafe calculations that silently shift your data by hours.

15 checks
NF
📝

Numeric Formatting

Catches manual date formatting, locale-dependent parsing, two-digit year usage, ambiguous date formats (MM/DD vs DD/MM), and hardcoded date separators that break across locales.

15 checks
EP

Epoch & Precision

Finds millisecond vs second epoch confusion, 32-bit timestamp usage risking Y2038 overflow, floating-point time storage, and Date.now() precision issues across environments.

15 checks
DA
🧮

Date Arithmetic

Detects manual day/month calculation, not accounting for leap years, hardcoded days-in-month values, and DST-breaking duration math that drifts silently over time.

15 checks
CP
🔍

Comparison & Parsing

Catches string comparison of dates, regex-based date parsing, loose date validation that accepts invalid dates, and timezone-naive comparisons that produce wrong results.

15 checks
ST
💾

Storage & Transport

Finds dates stored as strings, non-ISO formats in API payloads, timestamps without timezone in databases, and locale-dependent serialization that corrupts on deserialization.

15 checks

DateGuard vs. Manual Review vs. Generic Linters

Purpose-built date/time analysis beats guesswork every time.

Capability Manual Review DateGuard Generic Linters
Timezone anti-pattern detection Inconsistent 90 patterns
Epoch precision validation Expert required ✓ Automated
Leap year & DST analysis Often missed ✓ 15 checks
Date format validation Manual grep ✓ Context-aware
Y2038 risk detection Very rare ✓ Pattern matching
Storage format analysis Checklist-based ✓ Automated
Date comparison validation Rarely checked ✓ 15 checks
Locale-dependent parsing Missed in testing ✓ Multi-locale
Remediation guidance None Per-finding fixes Generic docs
Scan time (1000 files) Hours/Days < 5 seconds Minutes
Zero false positive mode N/A
CI/CD integration ✓ SARIF
Privacy (no upload) ✓ 100% local Varies

Simple, transparent pricing

Start scanning for free. Upgrade when your timestamps demand it.

Free
$0/mo
For solo developers who want basic date/time checks.
  • 30 detection checks
  • Timezone Handling (TZ) category
  • Numeric Formatting (NF) category
  • Terminal report output
  • Basic scoring & grading
  • Community support
Install Free
Team
$39/mo
For teams enforcing date/time standards across services.
  • All 90 detection checks
  • Everything in Pro
  • Comparison & Parsing (CP) category
  • Storage & Transport (ST) category
  • CI/CD integration & SARIF
  • Custom rule definitions
  • Priority support
Get Team

Get notified about updates

No spam. One email per week max. Unsubscribe anytime.

Time waits for no one. Neither do bugs.

Install DateGuard in 30 seconds. Find every timezone mistake, epoch bug, and date arithmetic error before they corrupt your data.

$ clawhub install dateguard click to copy