fixed date normalization to use trading.environment method