summaryrefslogtreecommitdiff
path: root/ucb/source/ucp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-09-13 13:11:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-09-13 17:14:26 +0200
commit2c8ced01216096dd03a4143fe41b4c5653deb67a (patch)
tree6d273f2a697e3d251a678d66703f989ea963d626 /ucb/source/ucp
parentfa7da09ad4afef8d6ae2dc809c5b9f059a9974b1 (diff)
cid#1509290, cid#1509240: Silence "Use of 32-bit time_t (Y2K38_SAFETY)" for now
We'll eventually need to do something about the 32 bit TimeValue::Seconds, but as it is unsigned we should be fine for another 80 years (until "06:28:15 UTC on Sunday, 7 February 2106", according to <https://en.wikipedia.org/wiki/Year_2038_problem#Solutions>). Change-Id: I74e680be0b2f0ef8cd84d6bc0faef436efc8d3cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139859 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index fc31965a990f..5c225a951dbd 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -422,6 +422,8 @@ static css::util::DateTime getDateFromUnix (time_t t)
{
TimeValue tv;
tv.Nanosec = 0;
+ // coverity[store_truncates_time_t] - TODO: sal_uInt32 TimeValue::Seconds is only large enough
+ // for integer time_t values < 2^32 representing dates until year 2106:
tv.Seconds = t;
oslDateTime dt;