Fix issue with seconds in date handler.