return midnight if value is 0.0