[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Frédéric Demianschanged: What|Removed |Added Status|Pushed to Master|Pushed to Stable CC||frede...@tamil.fr --- Comment #9 from Frédéric Demians --- Pushed in 16.05. Will be in 16.05.03. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Kyle M Hallchanged: What|Removed |Added Status|Passed QA |Pushed to Master -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 --- Comment #8 from Kyle M Hall--- That is sufficient to me! Pushed to master for 16.11! (In reply to Galen Charlton from comment #7) > (In reply to Kyle M Hall from comment #6) > > Would it not be simpler to pass the parameter timeformat => '24hr' to > > output_pref instead of using an external lib? > > I note that output_pref(), if we were to take its name literally, is for > formatting date and time *output*. DateTime::Format::MySQL is already used > in other places and its name makes it clear that a DateTime passed through > is meant to be fed to an SQL query. > > I think it better that we keep the concerns of formatting timestamps for > human display separate from formatting them for computer consumption. > > I am reseting the status of this bug back to "Passed QA". -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Galen Charltonchanged: What|Removed |Added Status|Failed QA |Passed QA --- Comment #7 from Galen Charlton --- (In reply to Kyle M Hall from comment #6) > Would it not be simpler to pass the parameter timeformat => '24hr' to > output_pref instead of using an external lib? I note that output_pref(), if we were to take its name literally, is for formatting date and time *output*. DateTime::Format::MySQL is already used in other places and its name makes it clear that a DateTime passed through is meant to be fed to an SQL query. I think it better that we keep the concerns of formatting timestamps for human display separate from formatting them for computer consumption. I am reseting the status of this bug back to "Passed QA". -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Kyle M Hallchanged: What|Removed |Added Status|Passed QA |Failed QA CC||k...@bywatersolutions.com --- Comment #6 from Kyle M Hall --- Would it not be simpler to pass the parameter timeformat => '24hr' to output_pref instead of using an external lib? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Katrin Fischerchanged: What|Removed |Added CC||katrin.fisc...@bsz-bw.de --- Comment #5 from Katrin Fischer --- Hi Jason, fixed your sign-off line to have your name - you might want to fix your git config :) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Katrin Fischerchanged: What|Removed |Added Attachment #54077|0 |1 is obsolete|| Attachment #54119|0 |1 is obsolete|| --- Comment #4 from Katrin Fischer --- Created attachment 54120 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54120=edit [PASSED QA] Bug 17001: fix due date filter on the overdue report When the TimeFormat system preference is set to "12 hour", setting a filter on the due date can result in: - no overdue loans being reported, even if there are some that meet the criteria OR - overdue loans being omitted from the report if they are due on the "until" date in the filter This patch fixes this by replacing output_pref() with DateTime::Format::MySQL to format the date filter values to pass to the SQL query. To test --- [1] Run the overdue report (circ/overdue.pl) and set a filter on due date, using values that should bring up one or more overdue loans. [2] Note that zero overdue loans are returned (if using MySQL 5.5, 5.6, or 5.7 or MariaDB 5) or that loans due on the "until" date are omitted (if using MarioDB 10). [3] Apply the patch and repeat step 1. This time, the correct set of overdue loans should be reported. Signed-off-by: Galen Charlton Signed-off-by: Jason Robb Signed-off-by: Katrin Fischer -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Katrin Fischerchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 --- Comment #3 from Katrin Fischer--- Created attachment 54119 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54119=edit k -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Jason Robbchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Jason Robbchanged: What|Removed |Added Attachment #53814|0 |1 is obsolete|| --- Comment #2 from Jason Robb --- Created attachment 54077 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54077=edit Bug 17001: fix due date filter on the overdue report When the TimeFormat system preference is set to "12 hour", setting a filter on the due date can result in: - no overdue loans being reported, even if there are some that meet the criteria OR - overdue loans being omitted from the report if they are due on the "until" date in the filter This patch fixes this by replacing output_pref() with DateTime::Format::MySQL to format the date filter values to pass to the SQL query. To test --- [1] Run the overdue report (circ/overdue.pl) and set a filter on due date, using values that should bring up one or more overdue loans. [2] Note that zero overdue loans are returned (if using MySQL 5.5, 5.6, or 5.7 or MariaDB 5) or that loans due on the "until" date are omitted (if using MarioDB 10). [3] Apply the patch and repeat step 1. This time, the correct set of overdue loans should be reported. Signed-off-by: Galen Charlton Signed-off-by: Your Name -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 --- Comment #1 from Galen Charlton--- Created attachment 53814 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53814=edit Bug 17001: fix due date filter on the overdue report When the TimeFormat system preference is set to "12 hour", setting a filter on the due date can result in: - no overdue loans being reported, even if there are some that meet the criteria OR - overdue loans being omitted from the report if they are due on the "until" date in the filter This patch fixes this by replacing output_pref() with DateTime::Format::MySQL to format the date filter values to pass to the SQL query. To test --- [1] Run the overdue report (circ/overdue.pl) and set a filter on due date, using values that should bring up one or more overdue loans. [2] Note that zero overdue loans are returned (if using MySQL 5.5, 5.6, or 5.7 or MariaDB 5) or that loans due on the "until" date are omitted (if using MarioDB 10). [3] Apply the patch and repeat step 1. This time, the correct set of overdue loans should be reported. Signed-off-by: Galen Charlton -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17001] filtering overdue report by due date can fail if TimeFormat is 12hr
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17001 Galen Charltonchanged: What|Removed |Added Patch complexity|--- |Small patch Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/