Fixed warning that gets thrown when the date object is not initialized