From d09730a3e817960fcb0375195c2c8cd67dd21cbb Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 6 Mar 2026 03:47:59 +0100 Subject: 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. --- applets/clock/clock-sunpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applets/clock') 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); } -- cgit v1.2.1