(weekStart?: number)
| 32 | }; |
| 33 | |
| 34 | export const getDefaultStartOfWeek = (weekStart?: number): string => { |
| 35 | if (isNullOrUndefined(weekStart)) { |
| 36 | return DEFAULT_WEEK_START.toString(); |
| 37 | } |
| 38 | |
| 39 | return (weekStart as number).toString(); |
| 40 | }; |
| 41 | |
| 42 | // Weekly quests rotate at the start of each week (Monday 00:00 UTC), matching |
| 43 | // DEFAULT_WEEK_START and the server's UTC rotation boundary. `|| 7` keeps the |
no test coverage detected