I've never seen `Hash#merge` use a block before; what's happening here?

Are you sure that it's necessary to coerce the dates into strings?