[Koha-bugs] [Bug 14922] Remove C4::Dates from cataloguing/additem.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 8 10:44:31 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14922

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |katrin.fischer at bsz-bw.de

--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Marc, I would prefer the first version, could be done with:

  my ( $yyyy, $mm, $dd ) = ( $today->year, $today->month, $today->day );
  $value =~ s/YYYY/$yyyy/g;
  $value =~ s/MM/$mm/g;
  $value =~ s/DD/$dd/g;

and avoid 1 call to output_string.
Especially because it's how we did on bug 14950 for batchMod.pl (also the
default values).

But maybe we have an issue, the $today->day returns "8" instead of "08".
I don't know what is the expected behavior.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list