summaryrefslogtreecommitdiff
path: root/x11/mate-panel/files/patch-applets_clock_clock-location.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/mate-panel/files/patch-applets_clock_clock-location.c')
-rw-r--r--x11/mate-panel/files/patch-applets_clock_clock-location.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/x11/mate-panel/files/patch-applets_clock_clock-location.c b/x11/mate-panel/files/patch-applets_clock_clock-location.c
new file mode 100644
index 000000000000..5f784e380463
--- /dev/null
+++ b/x11/mate-panel/files/patch-applets_clock_clock-location.c
@@ -0,0 +1,30 @@
+--- applets/clock/clock-location.c.orig 2022-01-26 15:27:16 UTC
++++ applets/clock/clock-location.c
+@@ -451,19 +451,27 @@ clock_location_get_offset (ClockLocation *loc)
+
+ unsetenv ("TZ");
+ tm = localtime (&t);
++#ifdef __FreeBSD__
++ sys_timezone = -tm->tm_gmtoff;
++#else
+ sys_timezone = timezone;
+
+ if (tm->tm_isdst > 0) {
+ sys_timezone -= 3600;
+ }
++#endif
+
+ setenv ("TZ", priv->timezone, 1);
+ tm = localtime (&t);
++#ifdef __FreeBSD__
++ local_timezone = -tm->tm_gmtoff;
++#else
+ local_timezone = timezone;
+
+ if (tm->tm_isdst > 0) {
+ local_timezone -= 3600;
+ }
++#endif
+
+ offset = local_timezone - sys_timezone;
+