Fix DateHistogramBuilder to use a String pre_offset and post_offset

Closes #5586