From ebbecfda8daadb53e960cd377a1f1fb0bbcf2654 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 29 Jun 2021 13:50:56 -0400 Subject: [PATCH] LP1934164 egDueDate and egOrgDateInContext Angular pipes 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 Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts index 4b0a93edd3..62fa2c7d99 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts @@ -89,6 +89,7 @@ export class GridColumnComponent implements OnInit { 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); -- 2.11.0