Fix pre-Gregorian date rejected by PostgreSQL driver in ActivitiesController.