Fix rosie lookup with %date in custom format.

Closes #1082.

@benfitzpatrick - please review.