Report template editor calendar starts at 1970
Bug #1705494 reported by
Beth Willis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Low
|
Unassigned |
Bug Description
EG 2.12.2
In the XUL client, if you create a report template with a date filter and attempt to input a value for that filter, the calendar widget does not allow entry of a date prior to 01-01-1970. This limitation seems arbitrary and causes a problem when creating certain types of reports. For example, in this case I am trying to create a recurring report to check for potentially erroneous patron dates of birth. So, the initial date in the filter range needs to be much earlier than 1970.
Changed in evergreen: | |
importance: | Undecided → Low |
Changed in evergreen: | |
status: | New → Won't Fix |
To post a comment you must log in.
Adding background info...
This is a limitation imposed by Javascript and the tools used in the XUL interface. Javascript's Date object has a "beginning of time" of Jan 1, 1970 (its epoch). The date picker uses Date objects internally, rather that free-form strings, to represent the date selected by the user.
I don't yet know if it would be possible to handle dates before the JS epoch in the web staff client, but it probably is not currently.