fixed bug in date formatting