diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2018-05-21 19:01:02 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-21 20:42:55 +0200 |
commit | 338d5f14ba3e77286c3447fb0bcbf46b0627a35f (patch) | |
tree | dcc4fd334bff139e0506b7d0f2ae1fab5b0e8abb /sw/source/filter/html | |
parent | aa8ea7d8c29a92b7b866eeb47317f79416db8eb8 (diff) |
sw: Ask current datetime only once
Change-Id: I99bed9a09ed1701ce441ddb0a19b5259ab37f135
Reviewed-on: https://gerrit.libreoffice.org/54621
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html')
-rw-r--r-- | sw/source/filter/html/htmlfld.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlfld.cxx b/sw/source/filter/html/htmlfld.cxx index 568f36576a84..53a7b1b435ab 100644 --- a/sw/source/filter/html/htmlfld.cxx +++ b/sw/source/filter/html/htmlfld.cxx @@ -320,8 +320,9 @@ void SwHTMLParser::NewField() case SwFieldIds::Time: { sal_uInt32 nNumFormat = 0; - sal_Int64 nTime = tools::Time( tools::Time::SYSTEM ).GetTime(); - sal_Int32 nDate = Date( Date::SYSTEM ).GetDate(); + DateTime aDateTime( DateTime::SYSTEM ); + sal_Int64 nTime = aDateTime.GetTime(); + sal_Int32 nDate = aDateTime.GetDate(); sal_uInt16 nSub = 0; bool bValidFormat = false; HTMLNumFormatTableEntry * pFormatTable; |