[Koha-bugs] [Bug 14194] Date due for on-site checkouts defaults to 00:00 for hh:mm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 13 16:41:50 CEST 2015


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39134|0                           |1
        is obsolete|                            |

--- Comment #2 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 39137
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39137&action=edit
Bug 14194: Restore the HH:MM to 23:59 for onsite-checkouts

(Introduced by bug 13601)

Test plan:
1/ Enable On-site checkouts
2/ Go on the checkouts page
3/ Click on the "On-site checkout" checkbox
=> The default date due should be today with 23:59 as HH:MM (not 00:00).

Technical note: There is a confusion with iso and sql date formats at
some places in the code.
A better way should be provided (later) to fix globally the mismatch
between these 2 formats.
What happened before this patch: the DateTime was cast to a string and
the template received "YYYY-MM-DDTHH:MM:SS" which is an iso formatted
date. BUT this format is not managed by Koha::DateUtils::output_pref
("iso" and "sql" are considered as indentical which is wrong).
As I did not estimated the problem (how big it is) I prefer to fix it
easily (and dirty) for now.

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


More information about the Koha-bugs mailing list