Rewrite printing timestamps in znc -D

Previous commit doing it was 0f739de2c083bf19c7e4ee080390a4840ccecbee