Commit d743d17
committed
fix(codebuff): track prevHour only for time-only timestamps
Fixed prevHour to only update for time-only timestamps (HH:MM PM).
RFC3339 timestamps retain their timezone, so comparing their hours
with local time-only timestamps can cause incorrect date advances.
Reset prevHour when a non-time-only timestamp is encountered to
prevent cross-format rollover errors.1 parent 342e4b8 commit d743d17
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
483 | 486 | | |
484 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
| |||
0 commit comments