Fix incorrect calculation of today's date