dmi: fix date handling in dmi_get_year()