Commit 0c1d48a
authored
Date/Time: Fix swapped variable names and comments in get_weekstartend().
The variables `$mm` and `$md` had their substr() positions and inline
comments swapped — `$mm` was extracting the day digits (position 8)
while `$md` was extracting the month digits (position 5), contrary to
what the comments indicated.
The output was accidentally correct because the two mistakes cancelled
each other out in the mktime() call, but the misleading naming posed
a future maintenance risk.
Corrects the substr() positions and mktime() argument order so that
variable names, comments, and logic are all consistent.1 parent e12ddb3 commit 0c1d48a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
0 commit comments