Fixed date format in date_histogram. Get transaction to consider timestamp and return  right entry