fixed plugin 'date' after pull request #1397 from IQAndreas/cleanup-date