Correctly handle Javascript Dates in MapReduceToMatcher