More fixes to date handling. Timezones are now used everywhere.