centralize date localization, localize dates for both reading from database and writing to database in a consistent way