Fixed the dates in the refresh data php