Fix output of ImageDate::toString.
If toString is called on a date range smaller than one day and withTime is false, the result should be a single date, not a range.