Removed unnecessary creation of date object