Fix issue introduced in trying to key by datetime.