[Koha-bugs] [Bug 27048] Add timestamps to verbose output of rebuild_zebra.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Feb 7 13:50:14 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27048
--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
(In reply to David Cook from comment #3)
> Comment on attachment 113780 [details] [review]
> Bug 27048: Add basic timekeeping to rebuild_zebra
>
> Review of attachment 113780 [details] [review]:
> -----------------------------------------------------------------
>
> ::: misc/migration_tools/rebuild_zebra.pl
> @@ +848,5 @@
> > + my $now_pretty = POSIX::strftime("%H:%M:%S",localtime($now));
> > + my $elapsed_pretty = $d ? "[$d:$h:$m:$s]" : $h ? "[$h:$m:$s]" : $m ? "[$m:$s]" : "[$s]";
> > +
> > + return "$now_pretty $elapsed_pretty";
> > +}
>
> Why not just use DateTime->now()->strftime("%H:%M:%S")?
Martin, can you answer David's question please?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list