Fix another bug in date