corrected current time function to show proper time and date