AG: fix date-picker showing days against the wrong day (and added test). Resolves #145