Handle dates in location upload correctly