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 /ridljar/Makefile | |
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 'ridljar/Makefile')
0 files changed, 0 insertions, 0 deletions