Fix a bug in ICal date-conversion. Remove some dead commented-out code.