View Issue Details

IDProjectCategoryView StatusLast Update
0003963Composrcataloguespublic2022-09-07 09:57
ReporterAdam EdingtonAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version10.0.29 
Summary0003963: Problem selecting older dates?
DescriptionNot 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.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Relationships

related to 0004908 resolvedChris Graham Content add date ranges are too limited 

Activities

Adam Edington

2019-11-24 15:26

administrator  

older_dates.png (3,210 bytes)
older_dates.png (3,210 bytes)

Chris Graham

2019-11-26 21:01

administrator   ~0006178

Last edited: 2019-11-26 21:01

View 2 revisions

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.

admin

2019-11-26 21:03

administrator   ~0006179

Automated response: Vagueness in documentation for date fields

The default date range is +/- 10 years around the current year. This isn't made explicit.

admin

2019-11-26 21:03

administrator   ~0006180

Fixed in git commit 0f69288a4 (https://gitlab.com/composr-foundation/composr/commit/0f69288a4 - link will become active once code pushed to GitLab)

Chris Graham

2019-11-26 21:53

administrator   ~0006181

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.

Adam Edington

2022-08-20 23:22

administrator   ~0007470

Last edited: 2022-08-23 15:06

View 2 revisions

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.

Chris Graham

2022-08-23 20:54

administrator   ~0007478

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?

Adam Edington

2022-08-24 01:03

administrator   ~0007480

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?

Chris Graham

2022-08-24 01:08

administrator   ~0007481

Last edited: 2022-08-24 01:09

View 2 revisions

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)?

Adam Edington

2022-08-24 01:20

administrator   ~0007484

Last edited: 2022-08-24 01:20

View 2 revisions

Yes, I just can't hit the Submit button if I try adding a date in 1989, no linky no likey. Using Edge.

Chris Graham

2022-08-24 01:59

administrator   ~0007486

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.

Chris Graham

2022-08-24 02:04

administrator   ~0007487

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.

Issue History

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 View Revisions
2019-11-26 21:53 Chris Graham Status non-assigned => resolved
2019-11-26 21:53 Chris Graham Resolution open => fixed
2019-11-26 21:53 Chris Graham Note Added: 0006181
2019-12-22 15:22 Adam Edington Note Revision Dropped: 6184: 0002735
2019-12-22 15:23 Adam Edington Note Revision Dropped: 6184: 0002734
2022-08-20 23:22 Adam Edington Note Added: 0007470
2022-08-23 15:06 Adam Edington Note Edited: 0007470 View Revisions
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 View Revisions
2022-08-24 01:20 Adam Edington Note Added: 0007484
2022-08-24 01:20 Adam Edington Note Edited: 0007484 View Revisions
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 0004908