[Koha-bugs] [Bug 15153] New: Koha::DateUtils sub dt_from_string has two different functions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 17:48:23 CET 2015


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

            Bug ID: 15153
           Summary: Koha::DateUtils sub dt_from_string has two different
                    functions
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: j.kylmala at gmail.com
        QA Contact: testopia at bugs.koha-community.org

Koha::DateUtils sub dt_from_string has two different functions: get date from
string and return DateTime->now(). I think it would be better to seperate to
other subroutine or remove fully the DateTime->now() because if someone uses
dt_from_string in code to generate the date now it would be really hard for
others to understand what is happening because the subroutine's name doesn't
give any clues.

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


More information about the Koha-bugs mailing list