From: Galen Charlton Date: Tue, 11 Sep 2018 18:58:29 +0000 (-0400) Subject: LP#1721139: apply proper date format in certain places X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e2196ec0e74ee757aacea89d937b719f1875a1b;p=Evergreen.git LP#1721139: apply proper date format in certain places This patch ensures that the correct date format is used to display dates in certain contexts in the web staff client: - patron bucket summary - record bucket summary - patron bucket 'View batch edits' This has the side effect of fixing a problem where the batch edit timestamps were not wrapped correctly in Firefox. To test ------- 1. Using user buckets, make some batch changes on some patrons and roll back some of those changes. 2. Using Firefox, click on the 'View Batch Edits' button. 3. Note that the times dispayed are formatted as raw database timestamps 4. Note that the summary for the user bucket displays the create time as a raw database timestamp. 5. Navigate to a record bucket and note that its create time is displayed as a raw timestamp as well. 3. Apply patch. 4. Repeat steps 2-5; this time, the times should be displayed using the correct date and time format. Signed-off-by: Galen Charlton Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/cat/bucket/share/t_bucket_info.tt2 b/Open-ILS/src/templates/staff/cat/bucket/share/t_bucket_info.tt2 index 9862c3341b..333f8eed7b 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/share/t_bucket_info.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/share/t_bucket_info.tt2 @@ -6,7 +6,7 @@ when="{'one': '[% l("1 item") %]', 'other': '[% l("{} items") %]'}"> - / [% l('Created {{bucket().create_time() | date}}') %] + / [% l('Created {{bucket().create_time() | date:egDateAndTimeFormat}}') %] / {{bucket()._owner_name}} diff --git a/Open-ILS/src/templates/staff/circ/patron/bucket/t_bucket_info.tt2 b/Open-ILS/src/templates/staff/circ/patron/bucket/t_bucket_info.tt2 index 6245f95adb..ee05b480ab 100644 --- a/Open-ILS/src/templates/staff/circ/patron/bucket/t_bucket_info.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/bucket/t_bucket_info.tt2 @@ -6,7 +6,7 @@ when="{'one': '[% l("1 item") %]', 'other': '[% l("{} items") %]'}"> - / [% l('Created {{bucket().create_time() | date}}') %] + / [% l('Created {{bucket().create_time() | date:egDateAndTimeFormat}}') %] / {{bucket().description()}} diff --git a/Open-ILS/src/templates/staff/circ/patron/bucket/t_changesets.tt2 b/Open-ILS/src/templates/staff/circ/patron/bucket/t_changesets.tt2 index dc98390a26..dce5481f46 100644 --- a/Open-ILS/src/templates/staff/circ/patron/bucket/t_changesets.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/bucket/t_changesets.tt2 @@ -23,10 +23,10 @@ {{g.name()}}
- {{g.complete_time() | date}} + {{g.complete_time() | date:egDateAndTimeFormat}}
- {{g.rollback_time() | date}} + {{g.rollback_time() | date:egDateAndTimeFormat}}