Skip to content

Commit fb99136

Browse files
authored
Fix DST bug
I prompted Claude 3.7 Sonnet thinking with this file and: > Check the DST display logic It suggested this fix.
1 parent 5984a7e commit fb99136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

california-clock-change.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ <h1>California Clock Change</h1>
245245

246246
// Determine if it is currently daylight savings time or not
247247
const currentDstDiv = document.getElementById('current-dst');
248-
const isDst = pastChange.isSpringForward && futureChange.isSpringForward;
248+
const isDst = pastChange.isSpringForward && !futureChange.isSpringForward;
249249
currentDstDiv.className = 'info-box';
250250
currentDstDiv.innerHTML = `
251251
<div>Current status:</div>

0 commit comments

Comments
 (0)