summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-05-10 16:42:01 +0200
committerJan Holesovsky <kendy@collabora.com>2017-05-10 17:46:46 +0200
commitc43ee7161ab57a22b53655b7b8d6e20ce1a70daa (patch)
treed3e67c9d4d88b4e684da4cef804de6386744ea48 /svtools
parentbb0543f6de926a2d89797162a974bb01772d890d (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.cxx2
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;