Re:The Wi Flag -Turns out some players in Asheron's Call wer...
by Aloisius on Friday February 10, 2023 @01:45PM
(#34743886)
I must be missing something. That is how modulo works. Well as long as January is month 0.
[ Parent
| on HN ]
Re:The Wi Flag -Turns out some players in Asheron's Call wer...
by SoftAnnaLee on Friday February 10, 2023 @02:10PM
(#34744225)
It seems that the issue is that `January === 1`; so when you get to December (i.e. `12`) it rolls over to 0 rather than remaining as 12.
Re:The Wi Flag -Turns out some players in Asheron's Call wer...
by thaumasiotes on Friday February 10, 2023 @07:46PM
(#34748222)
You want (current_month % 12) + 1.