LP#1831784: fix Angular's formatting of DOB field
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 6 May 2019 21:41:31 +0000 (17:41 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 14 Jun 2019 15:53:05 +0000 (11:53 -0400)
commitc5a5e40d0ff22d5884421cd1145aa9da5ad77ae0
treed226880b91342d848135fb053671591ad98f7eed
parent76fe0c10d9c006c0fa22c42c0ee0db3ecb31633c
LP#1831784: fix Angular's formatting of DOB field

Otherwise, depending on the local time zone, the date displayed
could be off a day.

The 'dob' columns are currently the the _only_ database/IDL fields
that are truly dates, not timestamps, hence the hard-coded exception.
However, an alternative approach would be to define a new 'date'
field type in the IDL.

To test
-------
[1] Construct an eg-grid (say, on the Angular sandbox page) that retrieves
    patron records. For users in North America, the birth dates are
    likely off by a day.
[2] Apply the patch and repeat step 1. This time, the birth dates should
    display as entered.

Sponsored-by: MassLNC
Sponsored-by: Georgia Public Library Service
Sponsored-by: Indiana State Library
Sponsored-by: CW MARS
Sponsored-by: King County Library System
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/format.service.ts