diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-05-10 16:42:01 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-05-11 15:54:23 +0200 |
commit | fa1872e682ad842918ed9d5eeb8462181ab6adc0 (patch) | |
tree | a1b5e4e7b2783106143d06551c7f796eec9cd920 /svtools | |
parent | f8dcc41b6d7b0e023096dbb213f9e182046da5cc (diff) |
related tdf#107677 html import: Fix the legacy datetime format reading.
Also includes unit test for both the legacy and new format.
Change-Id: I254c40af45a4700319577f11e6cb8ff5f0ff6128
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 3bddc50595de..971821384827 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -2001,7 +2001,7 @@ bool HTMLParser::ParseMetaOptionsImpl( if (comphelper::string::getTokenCount(aContent, ';') == 2) { Date aDate((sal_uLong)aContent.getToken(0, ';').toInt32()); - tools::Time aTime((sal_uLong)aContent.getToken(1, ';').toInt32()); + tools::Time aTime((sal_uLong)aContent.getToken(1, ';').toInt64()); DateTime aDateTime(aDate, aTime); uDT = aDateTime.GetUNODateTime(); valid = true; |