parser: fix handling of some dates