Refactored logUnsafe to zerofill time segments.