Avoid getDates() warning, refs #5737