summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorjucasaca <jcsanz@libreoffice.org>2022-08-25 20:21:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-07 12:48:16 +0200
commitb20594f2fc8f6f9fdbf0b257b4e74d95a8d90139 (patch)
treedfb4553b65efebc1731ac118be2e33580fa57e43 /extensions
parentb251228d2e5e2832e0a617213173e8841f5b7428 (diff)
tdf#150569 Modify hardcoded dates to extend the range of accepted dates
Replaces date range limits to allow entry of dates between 1/1/0001 and 31/12/9999, which is the normal date range in most database manager May need some discussion Change-Id: Ide8dfc64663d2ef2a66d8b7e1af3ef8ed3bb0af5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138845 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/standardcontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 95b4143c76b8..1c88f98ecf8c 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -99,8 +99,8 @@ namespace pcr
m_xEntryFormatter.reset(new weld::DateFormatter(*m_xEntry));
m_xEntryFormatter->SetStrictFormat(true);
- m_xEntryFormatter->SetMin(::Date(1, 1, 1600));
- m_xEntryFormatter->SetMax(::Date(1, 1, 9999));
+ m_xEntryFormatter->SetMin(::Date(1, 1, 0001));
+ m_xEntryFormatter->SetMax(::Date(31, 12, 9999));
m_xEntryFormatter->SetExtDateFormat(ExtDateFieldFormat::SystemShortYYYY);
m_xEntryFormatter->EnableEmptyField(true);