diff options
author | Eike Rathke <erack@redhat.com> | 2020-07-02 20:49:56 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-07-03 01:32:16 +0200 |
commit | 30ea3ba86b110db68c19815c5c67d4d315c091bf (patch) | |
tree | 5a9afd0b1d8a531e15a8637f20fbdd298bdfa7ed /sc | |
parent | aea7fe41358c218a12dc34e4c0942360f0d5fde6 (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
(cherry picked from commit 75230de70fece41986b5ad96bc959e6b1640003c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97792
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sc')
-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 891fcbc7e798..f50aafb58810 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) |