-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dates before 1581 are not read correctly #9288
Comments
Also dates in the future (higher than |
Possibly related: #8844 |
Prob related to the introduction of the Julian Calendar in 1584? |
Alright so I could verify that Anyway I could also find out that Example: $year = 1580;
$month = 1;
$day = 20;
$calendar = IntlCalendar::createInstance(null, self::ISO_LOCALE);
$calendar->set(IntlCalendar::FIELD_YEAR, $year);
$calendar->set(IntlCalendar::FIELD_MONTH, $month - 1);
$calendar->set(IntlCalendar::FIELD_DAY_OF_MONTH, $day);
echo $formatter->format($calendar); // echos '1580-01-20' |
@phptek I really don't know why the However using |
Affected Version
SilverStripe 4.4
Description
Dates before
1581-01-01
are neither stored nor read correctly.Steps to Reproduce
Date
field in the$db
arraySilverStripe\Forms\DateField
using thegetCMSFields()
method1580-12-17
Expected Behavior
The date value should equal
1580-12-17
Actual Behavior
The date displayed in the CMS is
1580-11-27
The text was updated successfully, but these errors were encountered: