How to restrict datetime to output only date in notices?
Hi all, I'm working on a notice where I need to place issue.date_due. Now, using <<issues.date_due>> gives the time as well. I want only the date (without the time). Looking into C4::Letters, I see this line - $replacedby = output_pref({ dt => dt_from_string( $replacedby ), dateonly => $dateonly }); is there a filter that I can apply? tia -idg -- Indranil Das Gupta Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
Hi Indranil, there is a bug report with a new feature that would allow to specify for any date field if the time is printed or not: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13622 Hope this helps, Katrin Am 05.07.2015 um 07:21 schrieb Indranil Das Gupta:
Hi all,
I'm working on a notice where I need to place issue.date_due. Now, using <<issues.date_due>> gives the time as well. I want only the date (without the time).
Looking into C4::Letters, I see this line - $replacedby = output_pref({ dt => dt_from_string( $replacedby ), dateonly => $dateonly });
is there a filter that I can apply?
tia -idg
idg, As a work-around, you can use <<items.onloan>>, which will contain the date without the time. In the long term, I think that bug 13622 provides a better, more flexible solution. --Barton On Sun, Jul 5, 2015 at 6:18 AM, Katrin Fischer <Katrin.Fischer.83@web.de> wrote:
Hi Indranil,
there is a bug report with a new feature that would allow to specify for any date field if the time is printed or not:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13622
Hope this helps,
Katrin
Am 05.07.2015 um 07:21 schrieb Indranil Das Gupta:
Hi all,
I'm working on a notice where I need to place issue.date_due. Now, using <<issues.date_due>> gives the time as well. I want only the date (without the time).
Looking into C4::Letters, I see this line - $replacedby = output_pref({ dt => dt_from_string( $replacedby ), dateonly => $dateonly });
is there a filter that I can apply?
tia -idg
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Barton, On Mon, Jul 6, 2015 at 8:24 AM, Barton Chittenden <barton@bywatersolutions.com> wrote:
idg,
As a work-around, you can use <<items.onloan>>, which will contain the date without the time.
thanks for the pointer! :)
In the long term, I think that bug 13622 provides a better, more flexible solution.
I agree. I've added the second sign-off, in hopes that the all powerful QA folks who-shall-not-be-named might take it to the next level ;-) cheers -idg -- Indranil Das Gupta L2C2 Technologies Phone : +91-98300-20971 Blog : http://indradg.randomink.org/blog IRC : indradg on irc://irc.freenode.net Twitter : indradg -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=- Please exchange editable Office documents only in ODF Format. No other format is acceptable. Support Open Standards. For a free editor supporting ODF, please visit LibreOffice - http://www.documentfoundation.org
participants (3)
-
Barton Chittenden -
Indranil Das Gupta -
Katrin Fischer