Added error handling to getServerDate

Added a check to see if the date returned is in ticks and convert it to
a proper date object if so.