Moved the date function so it's accurate at the time we need to log the SPARTA shutdown