From owner-freebsd-ports Thu Apr 25 19:40:16 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F91337B41A for ; Thu, 25 Apr 2002 19:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3Q2e1P42840; Thu, 25 Apr 2002 19:40:01 -0700 (PDT) (envelope-from gnats) Received: from lerlaptop.lerctr.org (lerlaptop.lerctr.org [207.158.72.14]) by hub.freebsd.org (Postfix) with ESMTP id D9F8237B419 for ; Thu, 25 Apr 2002 19:35:53 -0700 (PDT) Received: from lerlaptop.lerctr.org (localhost [127.0.0.1]) by lerlaptop.lerctr.org (8.12.3/8.12.3) with ESMTP id g3Q2ZsvE003881 for ; Thu, 25 Apr 2002 21:35:54 -0500 (CDT) (envelope-from ler@lerlaptop.lerctr.org) Received: (from ler@localhost) by lerlaptop.lerctr.org (8.12.3/8.12.3/Submit) id g3Q2Zrbc003852; Thu, 25 Apr 2002 21:35:53 -0500 (CDT) Message-Id: <200204260235.g3Q2Zrbc003852@lerlaptop.lerctr.org> Date: Thu, 25 Apr 2002 21:35:53 -0500 (CDT) From: Larry Rosenman Reply-To: Larry Rosenman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37471: mail/evolution port needs a patch for TZ handling with DST Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37471 >Category: ports >Synopsis: mail/evolution port needs a patch for TZ handling with DST >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 25 19:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Larry Rosenman >Release: FreeBSD 4.5-STABLE i386 >Organization: LERCTR Consulting >Environment: System: FreeBSD lerlaptop 4.5-STABLE FreeBSD 4.5-STABLE #16: Sun Apr 21 13:43:39 CDT 2002 ler@lerlaptop:/usr/obj/usr/src/sys/LERLAPTOP i386 >Description: the mail/evolution port mis-handles Daylight savings time. There is a patch that will fix it in 1.0.4, but who knows when that will be released. I'll place a patch that works for FreeBSD below. >How-To-Repeat: Build Evolution 1.3, send mail (in a place where DST is in effect), note the Date: header has a Timezone indiction is one hour west of where it was >Fix: I discovered (and reported to the Evolution team) a bug where on FreeBSD the timezone is adjusted to be one hour off from reality when DST is in effect. The Evolution team fixed it in CVS for 1.0.4, but I don't know when it will be out. Can the port be modified to patch camel/camel-mime-message.c to remove the lines around line 212 that set offset += 100? Not a problem, but please submit a patch instead of a verbal description. Thanks! -Maxim Here is my quickie patch, I'm not sure how y'all want to do it. it definately fixes FreeBSD.... *** camel-mime-message.c.orig Wed Apr 10 10:19:38 2002 --- camel-mime-message.c Wed Apr 10 09:31:51 2002 *************** *** 209,216 **** --- 209,218 ---- tz = -local->tm_gmtoff; #endif offset = -(((tz/60/60) * 100) + (tz/60 % 60)); + #if 0 if (local->tm_isdst>0) offset += 100; + #endif } message->date = date; message->date_offset = offset; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message