diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-02 15:53:04 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-02 15:56:20 +0200 |
commit | 1b13548f33720d80f53d493f6d70cbcce6b1a0fb (patch) | |
tree | 0b797dde491986b97a94b96ed4fb83a6295c1a72 /basic/source/sbx/sbxscan.cxx | |
parent | d2007136587a8722d0e7045828bca6a6d82fd244 (diff) |
BASIC: handle the full tools::Date range from -32768-01-01 to 32767-12-31
* Input of two-digit years only possible through CDateFromIso() though to
maintain compatibility with previous behavior and also VBA mode.
* VBA mode restricted to years 1..9999
Change-Id: Ia9574c3bf136619b4831b349d263c96b162d1ed4
Diffstat (limited to 'basic/source/sbx/sbxscan.cxx')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index a6800506faf2..dd0a531e964c 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -761,7 +761,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const { sal_Int16 nYear = implGetDateYear( nNumber ); double dBaseDate; - implDateSerial( nYear, 1, 1, dBaseDate ); + implDateSerial( nYear, 1, 1, true, dBaseDate ); sal_Int32 nYear32 = 1 + sal_Int32( nNumber - dBaseDate ); rRes = OUString::number(nYear32); } |