Bug 9479: The member notices page doesn't display dates in the syspref format
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 24 Jan 2013 10:50:08 +0000 (11:50 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 31 Mar 2013 03:26:37 +0000 (23:26 -0400)
commit68784dfdf2e23f51217b6be76e8a14f17910bf1f
tree25bc47d5e06db1683a34d67298d29951bd8406f4
parent97c42671e9a9fdb889d11fb3e36dfa08cfca47a2
Bug 9479: The member notices page doesn't display dates in the syspref format

In order to let the KohaDates plugin display a datetime, this patch
modify this plugin.
Now it uses Koha::DateUtils instead of C4::Dates.

Test plan:
- check that the date format on the member notices page
  (members/notices.pl) is displayed according your syspref dateformat.
- check that existing dates are always in the good format (without the
  hours) e.g. acqui/histsearch.pl, acqui/basket.pl, etc.
- Modify your syspref and recheck the previous pages

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
This is a nice addition, and works according to the test plan. A nice
follow-up would be to create a system pref for formatting times
(12/24hr).

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixed a tab in notices.tt to make QA script happy.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Koha/Template/Plugin/KohaDates.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt