mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 16:15:24 +02:00
The previous fix only handled the unambiguous case (day > 12). Dates like "5/1/26" or "12/1/26" (Jan 5 / Jan 12, 2026) were falling through to JS's new Date() which parsed them as US format MM/DD/YY, assigning them to May and December instead of January. Now any 3-part slash date with a 2-digit year in position 3 and a valid month in position 2 is treated as DD/M/YY (Spanish/EU convention), fixing weeks 2-3 of January (days 5-18) showing zero sell-out. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>