SyntaxFix
Write A Post
Hire A Developer
Questions
Months are zero-based in Calendar. So 12 is interpreted as december + 1 month. Use
c.set(year, month - 1, day, 0, 0);