summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <[email protected]>2026-03-06 03:47:59 +0100
committerVictor Kareh <[email protected]>2026-03-11 13:40:27 -0400
commitd09730a3e817960fcb0375195c2c8cd67dd21cbb (patch)
treeebdf5d80713c7929a161c44b3d4586e257cf77f9
parent37fd0c5169e37b2962c9979659d693eec1d0bf24 (diff)
downloadmate-panel-d09730a3e817960fcb0375195c2c8cd67dd21cbb.tar.bz2
mate-panel-d09730a3e817960fcb0375195c2c8cd67dd21cbb.tar.xz
Use gint64 to track UNIX timestamps
to make it work after the year 2038 See https://en.wikipedia.org/wiki/Year_2038_problem This patch was done while reviewing potential year-2038 issues in openSUSE.
-rw-r--r--applets/clock/clock-sunpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/clock/clock-sunpos.c b/applets/clock/clock-sunpos.c
index 7b3ee86a..4cca172f 100644
--- a/applets/clock/clock-sunpos.c
+++ b/applets/clock/clock-sunpos.c
@@ -52,7 +52,7 @@
/* Calculate number of days since 4713BC.
*/
static gdouble
-unix_time_to_julian_date (gint unix_time)
+unix_time_to_julian_date (gint64 unix_time)
{
return UNIX_EPOCH + (double) unix_time / (60 * 60 * 24);
}