Skip to content

Commit 592019a

Browse files
msukkariclaude
andcommitted
fix(web): Use UTC timezone for "Data since" date display
Adds timeZone: "UTC" to toLocaleDateString() call so the oldest record date doesn't shift by a day depending on the client's local timezone. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff2339e commit 592019a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/ee/features/analytics/analyticsContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export function AnalyticsContent() {
570570
</p>
571571
{analyticsResponse.oldestRecordDate && (
572572
<p className="text-xs text-muted-foreground/70">
573-
Data since: {new Date(analyticsResponse.oldestRecordDate).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" })}
573+
Data since: {new Date(analyticsResponse.oldestRecordDate).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric", timeZone: "UTC" })}
574574
</p>
575575
)}
576576
</div>

0 commit comments

Comments
 (0)