datestamp needs to account for local timezone offset