Bug 170325 - Update default two digit year range start from 1930 to a more current one
Summary: Update default two digit year range start from 1930 to a more current one
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Aron Budea
URL:
Whiteboard: target:26.8.0 target:26.2.0.2
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-13 11:05 UTC by Aron Budea
Modified: 2026-01-14 22:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
2digit-year handling at Win11 25H2 (40.59 KB, image/png)
2026-01-13 13:50 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2026-01-13 11:05:10 UTC
The default range of Year (Two Digits) section under Tools -> Options -> LibreOffice -> General is 1930 (to 2029).

It has been so ever since the first LO release 15 years ago, probably even longer back in OO days. Since we're getting very close to the end of the range, I would suggest bumping it by 20-30 years.
How does 1960 sound?

The default is here:
https://opengrok.libreoffice.org/xref/core/officecfg/registry/schema/org/openoffice/Office/Common.xcs?r=3c12bd0f084e74fe4ca98db50b454af5ef2b96d9#3614

Config: TwoDigitYear
Comment 1 V Stuart Foote 2026-01-13 13:01:25 UTC
Just checked a Windows 11 (25H2 26200.7462) install, and MS has already moved the os handling of two-digit year entry to the 1950 - 2049 pivot, from 1930 - 2029 implemented at Y2K.

Internally ODF requires ISO 8601 date handling, so the two-digit year interpretation is *just* a filtering action left up to the application.

Agree it is not too soon to adjust, but I'd suggest moving the 'TwoDigitYear' value to '1950' with the 1950 - 2049 range to track with MS, rather than more aggressive 1960 - 2059.
Comment 2 V Stuart Foote 2026-01-13 13:50:03 UTC
Created attachment 205035 [details]
2digit-year handling at Win11 25H2

Internally LibreOffice keeps dates as ISO 8601, so the 2-digit year "interpretation" is just a UI function and may or may not need to take input from os/DE. I don't think LO does, and the 'TwoDigitYear' value in Common.xcs just sets the cross over.
Comment 3 Commit Notification 2026-01-14 18:30:35 UTC
Aron Budea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/211cbca48cc3d2c912663224c650f4ee3431f7e5

tdf#170325 update default TwoDigitYear to 1950

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Aron Budea 2026-01-14 18:40:12 UTC
Done, thanks for the input! Backport to 26.2 is on gerrit.
Comment 5 Commit Notification 2026-01-14 22:30:00 UTC
Aron Budea committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/37435cd653fa0178ffe74b0e9225c17061292455

tdf#170325 update default TwoDigitYear to 1950

It will be available in 26.2.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.