tweak date calculation for truncated seconds