diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-05-10 16:42:01 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-05-10 17:46:46 +0200 |
commit | c43ee7161ab57a22b53655b7b8d6e20ce1a70daa (patch) | |
tree | d3e67c9d4d88b4e684da4cef804de6386744ea48 /svtools | |
parent | bb0543f6de926a2d89797162a974bb01772d890d (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 0906aab472fa..5ad3a2d3b836 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1970,7 +1970,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; |