Report template editor calendar starts at 1970

Bug #1705494 reported by Beth Willis
6
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.

Tags: fixedinwebby
Revision history for this message
Beth Willis (willis-a) wrote :
Revision history for this message
Mike Rylander (mrylander) wrote :

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.

Revision history for this message
Andrea Neiman (aneiman) wrote :

Looked at this in 3.2 and despite Reports being the ported interface I can in fact set pre-1970 dates on a date filter. Tagging fixedinwebby, but not marking won't fix yet in case there's something I'm misunderstanding.

tags: added: fixedinwebby
Changed in evergreen:
importance: Undecided → Low
Revision history for this message
Dawn Dale (ddale) wrote :

I agree Andrea, I believe this is fixed in webby. I can run reports with birth dates before 1970 in webby. I am going to mark this one won't fix.

Changed in evergreen:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.