fix: header "Next update" uses second Tuesday (closes #12) #13
Reference in New Issue
Block a user
Delete Branch "fix/header-next-update-date"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #12
Sammanfattning
Header visade fel datum för "Next update" — första tisdagen i nästa månad istället för PDGA:s faktiska cykel (andra tisdagen i månaden).
Ändring
Ersätter den duplicerade
computeNextUpdate()isrc/services/topbar-service.jsmed ett anrop till den centralagetNextPDGAUpdateDate()frånsrc/services/rating-calculator.js. Behåller endast formateringen ("Tue 9 Jun") lokalt.Före:
Tue 2 Jun(första tisdagen i juni, fel)Efter:
Tue 9 Jun(andra tisdagen i juni, korrekt)Test plan
The topbar showed the first Tuesday of the *next* month instead of PDGA's actual cycle (second Tuesday of the month). Replace the duplicated computeNextUpdate() with the central getNextPDGAUpdateDate() from rating-calculator, keeping only the formatter ("Tue 9 Jun") here.