View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
3963 | Composr | catalogues | public | 2019-11-24 15:26 | 2022-09-07 09:57 |
Reporter | Adam Edington | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Fixed in Version | 10.0.29 | ||||
Summary | 3963: Problem selecting older dates? | ||||
Description | Not sure specifically what the issues is here, but it seems older dates (2008 for instance) are rejected as invalid. 3rd occurrence of this so thought I would mention. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
related to | 4908 | Resolved | Chris Graham | Content add date ranges are too limited |
|
The defaults are to allow dates +/- 10 years around the current year. You can add field options like... min_year=1900,max_year=2100 I do think there's a UX issue here, I'm thinking about it. |
|
Automated response: Vagueness in documentation for date fields The default date range is +/- 10 years around the current year. This isn't made explicit. |
|
Fixed in git commit 0f69288a4 (https://gitlab.com/composr-foundation/composr/commit/0f69288a4 - link will become active once code pushed to GitLab) |
|
For v11 the default min is now 0ad and the default max is now 3000ad. If you want years around the current year you can do like min_year=Y-10,max_year=Y+10. |
|
Just a note to say this issue also affects gallery dates and not sure how to work around that or if a fix exists in v11. |
|
I tested change the add date for a gallery to 2000, no issue. I tested adding a custom field to galleries with the field options specified in my first comment, no issue. Did you use the field options? |
|
The date I was trying to add is in the year 1989, I was using/editing the gallery added date for ordering. If I use a custom catalogue field then not sure how to sort the gallery via that which is why I reverted back to the existing date field. I was just asking/checking if this is more flexible in v11? |
|
Are you saying you are ordering subgalleries by date but it won't accept any date in 1989? If so, what precisely is happening, is this it you cannot input it, is it an error before it lets you submit the form, is it an error from the server? What web browser is this? Or are you saying there is no way to order subgalleries by date (which would be an entirely different issue to this one)? |
|
Yes, I just can't hit the Submit button if I try adding a date in 1989, no linky no likey. Using Edge. |
|
Okay I've checked. For this case, the rule is 20 years back. So the 2008 date in the original issue will work, but anything under 2002 will not work as of right now. I misspoke when I said 2000 works, it does not. |
|
Yeah, this is bad. I don't think any real thought went into this +/- 20 year date range, other than: 1) originally we used HTML lists for date inputs and needed to limit the length of the lists for sanity reasons 2) we can't go before 1970 on all systems (it's an issue on Windows specifically, as it cannot deal with negative unix timestamps) 3) the year 2038 problem https://en.wikipedia.org/wiki/Year_2038_problem I'm mulling it all over. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-24 15:26 | Adam Edington | New Issue | |
2019-11-24 15:26 | Adam Edington | File Added: older_dates.png | |
2019-11-26 21:01 | Chris Graham | Note Added: 0006178 | |
2019-11-26 21:01 | Chris Graham | Note Edited: 0006178 | |
2019-11-26 21:53 | Chris Graham | Status | Not Assigned => Resolved |
2019-11-26 21:53 | Chris Graham | Resolution | open => fixed |
2019-11-26 21:53 | Chris Graham | Note Added: 0006181 | |
2022-08-20 23:22 | Adam Edington | Note Added: 0007470 | |
2022-08-23 15:06 | Adam Edington | Note Edited: 0007470 | |
2022-08-23 20:54 | Chris Graham | Note Added: 0007478 | |
2022-08-24 01:03 | Adam Edington | Note Added: 0007480 | |
2022-08-24 01:08 | Chris Graham | Note Added: 0007481 | |
2022-08-24 01:09 | Chris Graham | Note Edited: 0007481 | |
2022-08-24 01:20 | Adam Edington | Note Added: 0007484 | |
2022-08-24 01:20 | Adam Edington | Note Edited: 0007484 | |
2022-08-24 01:59 | Chris Graham | Note Added: 0007486 | |
2022-08-24 02:04 | Chris Graham | Note Added: 0007487 | |
2022-08-24 02:22 | Chris Graham | Relationship added | related to 4908 |