cookie setting now handles timezones correctly