Fixed duplicate code for DateTime Calendar in S3search