Fixed bug with time part in dates