summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-07-14 14:18:30 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-07-16 21:55:41 +0200
commitc76c3655a394462b7b23bdfe6da4542fbdf30fbb (patch)
treeac8f9919cfb2c5deab01d9d1d639e7a2604a6706 /include/unotools
parentc52cd532b6eea9f32d6d6745818b27adcbf91b16 (diff)
tools: create DateTime from Unix time
Certain parts of the code need to work with Unix time (seconds from epoch--Jan 01, 1970). This helper is currently intended to be used by the crypto signing logic, but should be adopted elsewhere to eliminate unnecessary conversions via string and other intermediatary forms. Change-Id: I3113c17f5d91f9b6cb59a00215582441b0186644 Reviewed-on: https://gerrit.libreoffice.org/39992 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/calendarwrapper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unotools/calendarwrapper.hxx b/include/unotools/calendarwrapper.hxx
index c4811508e029..96e0b7c8343f 100644
--- a/include/unotools/calendarwrapper.hxx
+++ b/include/unotools/calendarwrapper.hxx
@@ -43,7 +43,7 @@ class UNOTOOLS_DLLPUBLIC CalendarWrapper
{
css::uno::Reference< css::i18n::XCalendar4 > xC;
- DateTime aEpochStart; // 1Jan1970
+ const DateTime aEpochStart; // 1Jan1970
public:
CalendarWrapper(