Bug 9893 - Koha::DateUtils::output_pref should not use $dateonly parameter
Summary: Koha::DateUtils::output_pref should not use $dateonly parameter
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-21 15:19 UTC by Jared Camins-Esakov
Modified: 2013-03-21 15:19 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Camins-Esakov 2013-03-21 15:19:02 UTC
The fourth parameter to Koha::DateUtils::output_pref is $dateonly, which allows the user to specify that the time should not be included in the returned date string. Now that there is a $force_time format (which perhaps might be better called $date_format), it would probably be better to eliminate $dateonly, and use a time format of "none" when the time is not wanted.