Fixed bug handling of timezone-aware dates.