Hi,

At this moment i'm creating a familiy tree on Drupal version 8.2.4
I use the book page node for this, and added 2 date fields that can be selected.
One is the birth date, the other is the death date.

But i'm running into the problem that i can not select dates before 1900.
An when creating a familiy tree for genelogy, you quickly need dates from 16-17th century.

When i try to enter the date manually, like 1765, the field does not accept the date.
I need to input a "valid date".

I did found some (very) old topic concerning dates before 1900.
https://www.drupal.org/node/180223
https://wunder.io/blog/storing-very-old-historical-dates/2008-02-06

Almost all topics are suggesting using the Date module, but that is part of the core now.
I downloaded the adodb_date_library (adodb-time.inc.php), but i have no idea how to use it in D8.

Is there any way to change the date selection restriction beyond (before) a value of 1900?

CommentFileSizeAuthor
#5 date.jpg49.95 KBVBN
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VBN created an issue. See original summary.

mpdonadio’s picture

Status: Active » Closed (duplicate)
Related issues: +#2795489: 2038 bug with PHP timestamps on 32-bit systems - warn users?
mpdonadio’s picture

Status: Closed (duplicate) » Postponed (maintainer needs more info)

Actually, can you provide a few more details here

What OS are you on, and are you using a special Drupal distro like Acquia Dev Desktop?

What browser are you using?

What type of field are you using (timestamp, datetime, or daterange)?

What field entry widget are you using (select list or date and time) on admin/structure/types/manage/page/form-display (or whatever content type you are using)?

When you are using the select list widget, the years are limited by default to 1900-2050. The easy way around this is to use the "date and time" widget, which seems to ignore the min/max dates (which looks like is a bug...)

mpdonadio’s picture

VBN’s picture

FileSize
49.95 KB

1. The website is already online, no local dev software like Acquia used. running win 10.
2. Browser: Google chrome, same results in firefox.
3. field used: Date. (date only)
4. I used the 'select list' before, and that was limited to 1900.
I changed it to 'date and time' widget, like you suggested, and i can go further back in time.
This time i don't use the selector, but enter the date manually by typing it into the field.
On creating the node, the date is accepted and saved.

But there is still a bug...
When i edit the node again and change the year number, there is a notification on save that reads:
"Value must be 01 Jan 1899 or later."
Even when it was initially saved before 1899.

value...

mpdonadio’s picture

Status: Postponed (maintainer needs more info) » Active

Blerg. You are running into #2840220: "Date and time" Form API element allows entry beyond min/max values. Since you are on Win10, I thought you would be running into #2795489: 2038 bug with PHP timestamps on 32-bit systems - warn users?, but that doesn't seem to be the case.

Until that first bug gets ironed out, let me think of a workaround for you.

VBN’s picture

You already helped me for a workaround.
The pages I create are static pages anyway and normally don't change (much).
So i'm good to move on for now.

I'll follow this topic as patches come along, no need to hurry.
But leave it open for the time being.

mpdonadio’s picture

Status: Active » Closed (duplicate)