[Koha] How to restrict datetime to output only date in notices?

Barton Chittenden barton at bywatersolutions.com
Mon Jul 6 14:54:47 NZST 2015


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 at 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 at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list