summaryrefslogtreecommitdiff
path: root/forms
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 /forms
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 'forms')
-rw-r--r--forms/source/component/Date.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx
index 3305e7695dff..e2be9e2ef8c1 100644
--- a/forms/source/component/Date.cxx
+++ b/forms/source/component/Date.cxx
@@ -86,7 +86,7 @@ ODateModel::ODateModel(const Reference<XComponentContext>& _rxFactory)
try
{
if ( m_xAggregateSet.is() )
- m_xAggregateSet->setPropertyValue( PROPERTY_DATEMIN, Any(util::Date(1, 1, 1800)) );
+ m_xAggregateSet->setPropertyValue( PROPERTY_DATEMIN, Any(util::Date(1, 1, 0001)) );
}
catch( const Exception& )
{