Language: C / C++. The pull request has one bug. You get three tries to find the line, then a short debrief.
The thermostat's clock chip counts days since 1 January 1980. The boot screen should show the date, so the firmware turns that day number into a year and a day of the year (the month comes from a table afterwards). Tested on today's date and on the very first day of the clock.
Codetrap needs JavaScript: the code review happens in your browser.