back
1 comments
> if (localtime(&s)->tm_mday == 30 && localtime(&s)->tm_mon == 2)

tm_mon's range is 0–11, so 2 is March, not February.