Date parsing bugfix.