Fixed incorrect date logging.