Fix weekday for dates before 1900