Switch to using get_offset_sec() with a time period.

Minimum safe value is probably somewhere in the range 6 to 12 hours,
so add a clause to check for a minimum value.