Fix calendar calculation: UTC cannot have DST ; from pkgsrc.
This fixes the 'today' button which was defaulting to the epoch.
This commit is contained in:
parent
a31f945948
commit
6424536219
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.24 2009/08/11 08:39:39 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.25 2009/09/02 07:44:16 ajacoutot Exp $
|
||||
|
||||
COMMENT= project management application
|
||||
|
||||
GNOME_PROJECT= planner
|
||||
GNOME_VERSION= 0.14.4
|
||||
PKGNAME= ${DISTNAME}p4
|
||||
PKGNAME= ${DISTNAME}p5
|
||||
|
||||
CATEGORIES= x11
|
||||
|
||||
|
14
x11/gnome/planner/patches/patch-libplanner_mrp-time_c
Normal file
14
x11/gnome/planner/patches/patch-libplanner_mrp-time_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-libplanner_mrp-time_c,v 1.1 2009/09/02 07:44:16 ajacoutot Exp $
|
||||
|
||||
Fix calendar calculation: UTC cannot have DST.
|
||||
|
||||
--- libplanner/mrp-time.c.orig Tue Jul 22 15:41:46 2008
|
||||
+++ libplanner/mrp-time.c Wed Sep 2 09:11:49 2009
|
||||
@@ -171,6 +171,7 @@ mrp_time_from_tm (struct tm *tm)
|
||||
/* This is a hack. Set the timezone to UTC temporarily. */
|
||||
old_tz = g_strdup (g_getenv ("TZ"));
|
||||
g_setenv ("TZ", "UTC", TRUE);
|
||||
+ tm->tm_isdst = 0;
|
||||
|
||||
t = mktime (tm);
|
||||
|
Loading…
Reference in New Issue
Block a user