bug in date