fix #990
Merge pull request #993 from ContinuumIO/daylight

fix #990