Fix year value when casting a multiparameter time hash
#34990

pixeltrix wants to merge fix-time-multiparameter-casting into master

We do not currently have an analysis of these two commits