Fixed bug with milliseconds that didn't  consider, when check new date