[Koha-bugs] [Bug 11244] notices ignoring the dateformat preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 25 17:01:12 CEST 2014


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

--- Comment #27 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 30127
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30127&action=edit
Bug 11244: (follow-up) Fix $dateonly flag

At the moment, $dateonly is set to true when $1 is defined. However,
since the regex capture group only includes the time, this flag will
only be set when there is a value that includes a time.

In effect, this means that timestamps are reduced to dates only,
while dates have 00-00-0000 added to them.

This patch keeps the logic but reverses the values, so that $dateonly
will default to true unless $1 is defined.

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>

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


More information about the Koha-bugs mailing list