attempt to fix time being calculated with different dates