diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2018-04-29 05:20:47 +0900 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-05-04 21:30:43 +0200 |
commit | 5103c6a405e93bb05018ab7c89e7e9446c740aaa (patch) | |
tree | 98b3b1705cfcd0eeb867cff94e8766f1978c287f /tools/Library_tl.mk | |
parent | 7b0ff01d1bf718c5b439b5cddfcdfe051271b28c (diff) |
tools: Avoid looking up system clock twice to get DateTime
DateTime::DateTime(DateTimeInitSystem) had initialized Date and
Time separately, which causes a slight possibility that it could
get a wrong datetime with almost 24 hours delay when it went beyond
midnight. E.g., the date part was of the previous day while the
time part was 00:00:00.xxx of the next day.
This also reduces duplicate code by sharing GetSystemDateTime().
Change-Id: I352d90f468f5cbc70e7936a337bed97365baa06c
Reviewed-on: https://gerrit.libreoffice.org/53612
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'tools/Library_tl.mk')
-rw-r--r-- | tools/Library_tl.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Library_tl.mk b/tools/Library_tl.mk index 2aee438fb2e9..c524a38084aa 100644 --- a/tools/Library_tl.mk +++ b/tools/Library_tl.mk @@ -44,6 +44,7 @@ $(eval $(call gb_Library_use_libraries,tl,\ $(eval $(call gb_Library_add_exception_objects,tl,\ tools/source/datetime/datetime \ tools/source/datetime/datetimeutils \ + tools/source/datetime/systemdatetime \ tools/source/datetime/tdate \ tools/source/datetime/ttime \ tools/source/debug/debug \ |