Fix UTC datestamp regression (fixes #7699)