ping for ticket 7805

I got bit today by the bug fixed by ticket 7805. If you use date select with discard_day today, nobody can select expiration dates in february. Can somebody look at this and apply or comment on what needs to be changed? I'll update the patch if necessary, but it would be nice to get this fixed in 1.2