These support displaying dates in the timezone of a specified org unit.
Example:
{{circ.xact_start() | egOrgDateInContext:circ.circ_lib():circ.duration()}}
The format service also gets a dateOnlyIntervalField parameter to
display dates as dates or dates + time depending on whether the provided
duration is day-granular.
Also adds a handy pipe (egDueDate) which takes a circulation as its
value and collects the correct parameters to display the due date in the
correct time zone and with the correct dateOnlyIntervalField value.
Example:
{{circ | egDueDate}}
Includes Sandbox examples.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
col.timezoneContextOrg = this.timezoneContextOrg;
col.dateOnlyIntervalField = this.dateOnlyIntervalField;
col.idlClass = this.idlClass;
+ col.dateOnlyIntervalField = this.dateOnlyIntervalField;
col.isAuto = false;
this.grid.context.columnSet.add(col);