do .upper() only once in dnsutil._to_seconds()
Merge pull request #4864 from cvrebert/patch-3

do .upper() only once in dnsutil._to_seconds()