diff options
author | Eike Rathke <erack@redhat.com> | 2020-07-02 20:49:56 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-07-02 23:54:09 +0200 |
commit | f106bb4471b6d3627311980ed727459b2da8e448 (patch) | |
tree | 0f9b61850701db67c64075e7a5855736b6664c9b /sc/source/core/tool/interpr2.cxx | |
parent | f4c126da920b06d273ddd375d7f77faa39f01cb5 (diff) |
Resolves: tdf#134455 Let TIMEVALUE() use lax time recognition
... to accept minutes or seconds >59
Prepare SvNumInputOptions as enum class in case further options
would be needed for anything else.
Change-Id: Ie9ae62adf68f9948e23f55ac32c09a6b992a36e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97784
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/core/tool/interpr2.cxx')
-rw-r--r-- | sc/source/core/tool/interpr2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index de63442eaf0e..6d202166db54 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -935,7 +935,7 @@ void ScInterpreter::ScGetTimeValue() OUString aInputString = GetString().getString(); sal_uInt32 nFIndex = 0; // damit default Land/Spr. double fVal; - if (pFormatter->IsNumberFormat(aInputString, nFIndex, fVal)) + if (pFormatter->IsNumberFormat(aInputString, nFIndex, fVal, SvNumInputOptions::LAX_TIME)) { SvNumFormatType eType = pFormatter->GetType(nFIndex); if (eType == SvNumFormatType::TIME || eType == SvNumFormatType::DATETIME) |