Refactored time stuff.
Fixed comment.
Return a blank string if location isn't set.