Fixed bug where date and time would change to current date and time on rotation.