Fixed a general error in that both the date and time wasn't being set correctly.