I have a function which I expect to return todays date. However it jumps the year ahead by 1. This only happens at the end of December. Can someone explain why this happens