Well, that was embarrassing. I didn't even link "DST" to "Summer" in my head.

Just to give a couple more details if they're needed: $daylight returns 0 when this bug occurs, and disabling Windows' automatic DST adjustment setting seems to fix it.

Sorry about that.