Saved the day

For real… I made a huge mistake, the day value was the one of the week (tm_wday so day 1 for Monday) instead of tm_mday that assigns the day number… Big issue that made everything work poorly…