Date: Tue, 5 Sep 2006 10:18:03 +0200 (CEST) From: Simun Mikecin <numisemis@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/102895: [fix] lang/see-devel: incorrect daylight savings calculation Message-ID: <20060905081803.7348726D056@mail.logos.hr> Resent-Message-ID: <200609050820.k858KO8n024790@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102895 >Category: ports >Synopsis: [fix] lang/see-devel: incorrect daylight savings calculation >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Sep 05 08:20:24 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD 5.2.1-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD mail.logos.hr 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Mon Jul 26 14:07:00 CEST 2004 root@mail.logos.hr:/usr/obj/usr/src.5.2.1-R/sys/MAIL i386 >Description: Daylight saving calculations are incorrect (giving wrong values). >How-To-Repeat: This could reproduced when daylight savings are in effect with this JavaScript code: var a = new Date(); a.getHours(); >Fix: diff -urN see-devel.orig/Makefile see-devel/Makefile --- see-devel.orig/Makefile Thu Aug 17 18:42:03 2006 +++ see-devel/Makefile Tue Sep 5 10:12:06 2006 @@ -7,6 +7,7 @@ PORTNAME= see PORTVERSION= 2.0.1131 +PORTREVISION= 1 CATEGORIES= lang devel MASTER_SITES= http://www.adaptive-enterprises.com.au/~d/software/see/ \ http://freshmeat.net/redir/see/45974/url_tgz/ diff -urN see-devel.orig/files/patch-libsee_obj__Date.c see-devel/files/patch-libsee_obj__Date.c --- see-devel.orig/files/patch-libsee_obj__Date.c Thu Jan 1 01:00:00 1970 +++ see-devel/files/patch-libsee_obj__Date.c Tue Sep 5 09:11:49 2006 @@ -0,0 +1,11 @@ +--- libsee/obj_Date.c.orig Sun May 7 06:43:55 2006 ++++ libsee/obj_Date.c Tue Sep 5 09:11:09 2006 +@@ -335,7 +335,7 @@ + struct SEE_interpreter *interp; + SEE_number_t t; + { +- return t + LocalTZA(interp) + DaylightSavingTA(interp, t); ++ return t + LocalTZA(interp) - DaylightSavingTA(interp, t); + } + + /* >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060905081803.7348726D056>