[dev] Patch for Kronolith Week link at end of year.
Chuck Hagenbuch
chuck@horde.org
Fri, 7 Dec 2001 21:52:21 -0500
Quoting Michael Cochrane <mike@graftonhall.co.nz>:
> This patch fixes a problem with the Month view in Kronolith. When the last few
> days of december are actually week 1 of the following year the year in the link
> needs to be incremented.
>
> This patch checks for month == 12 and weekofyear == 1 and prints the correct
> link
Committed, thanks.
-chuck
--
"Because of your melodic nature, the moonlight never misses an appointment."
- fortune cookie
>From zrahman@partex.net Date: Sat, 8 Dec 2001 15:39:12 +0600
Return-Path: <zrahman@partex.net>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 87726 invoked from network); 8 Dec 2001 09:37:09 -0000
Received: from partex.net (HELO mail.partex.net) (root@202.4.96.10)
by clark.horde.org with SMTP; 8 Dec 2001 09:37:09 -0000
Received: (from www@localhost)
by mail.partex.net (8.9.3/8.9.3) id PAA27807
for dev@lists.horde.org; Sat, 8 Dec 2001 15:39:12 +0600
X-Authentication-Warning: mail.partex.net: www set sender to zrahman@partex.net using -f
Received: from 202.4.96.6 ( [202.4.96.6])
as user zrahman@mail.partex.net by mail.partex.net with HTTP;
Sat, 8 Dec 2001 15:39:12 +0600
Message-ID: <1007804352.3c11dfc05def6@mail.partex.net>
Date: Sat, 8 Dec 2001 15:39:12 +0600
From: M Z Rahman <zrahman@partex.net>
To: dev@lists.horde.org
References: <1007779203.3c117d838a7f0@webmail.graftonhall.co.nz> <20011207215221.A25516@horde.org>
In-Reply-To: <20011207215221.A25516@horde.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 202.4.96.6
X-Webmail-Company: Dhakacom Limited.
Subject: Re: [dev] Patch for Kronolith Week link at end of year.
Hi,
After the latest CVS update, I am getting the following error in kronolith:
Fatal error: Call to undefined function: gregoriantojd() in
/www2/horde/kronolith/lib/Kronolith.php on line 193
Regards,
Zia
Quoting Chuck Hagenbuch <chuck@horde.org>:
> Quoting Michael Cochrane <mike@graftonhall.co.nz>:
>
> > This patch fixes a problem with the Month view in Kronolith. When the last
> few
> > days of december are actually week 1 of the following year the year in the
> link
> > needs to be incremented.
> >
> > This patch checks for month == 12 and weekofyear == 1 and prints the
> correct
> > link
>
> Committed, thanks.
>
> -chuck
>
> --
> "Because of your melodic nature, the moonlight never misses an
> appointment."
> - fortune cookie
>
> --
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>
>From mike@graftonhall.co.nz Date: Sat, 8 Dec 2001 09:53:48 +0000
Return-Path: <mike@graftonhall.co.nz>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 88076 invoked from network); 8 Dec 2001 09:53:01 -0000
Received: from unknown (HELO graftonhall.co.nz) (210.54.179.59)
by clark.horde.org with SMTP; 8 Dec 2001 09:53:01 -0000
Received: from localhost [127.0.0.1]
by graftonhall.co.nz [10.0.0.4]
with SMTP (MDaemon.PRO.v5.0.1.R)
for <dev@lists.horde.org>; Sat, 08 Dec 2001 22:53:49 +1300
Received: from 10.0.0.4 ( [10.0.0.4])
as user mike@10.0.0.4 by webmail.graftonhall.co.nz with HTTP;
Sat, 8 Dec 2001 09:53:48 +0000
Message-ID: <1007805228.3c11e32cc4aae@webmail.graftonhall.co.nz>
Date: Sat, 8 Dec 2001 09:53:48 +0000
From: Michael Cochrane <mike@graftonhall.co.nz>
To: dev@lists.horde.org
References: <1007779203.3c117d838a7f0@webmail.graftonhall.co.nz> <20011207215221.A25516@horde.org> <1007804352.3c11dfc05def6@mail.partex.net>
In-Reply-To: <1007804352.3c11dfc05def6@mail.partex.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-MOQ1007805228609460476d47405ff3ab91a2367ab9e0"
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 10.0.0.4
X-MDRemoteIP: 127.0.0.1
X-Return-Path: mike@graftonhall.co.nz
X-MDaemon-Deliver-To: dev@lists.horde.org
Subject: Re: [dev] Patch for Kronolith Week link at end of year.
---MOQ1007805228609460476d47405ff3ab91a2367ab9e0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
This error was caused by a previous patch (my doing) I've posted another patch
since to correct but it hasn't been committed yet. I've attached the diff if
you want to patch your your copy...
and contrary to my previous statements.. this algorithm of calculating it
actually runs 10% quicker that the previous one...
- Mike
Quoting M Z Rahman <zrahman@partex.net>:
>
> Hi,
>
> After the latest CVS update, I am getting the following error in kronolith:
>
> Fatal error: Call to undefined function: gregoriantojd() in
> /www2/horde/kronolith/lib/Kronolith.php on line 193
>
> Regards,
>
> Zia
>
>
> Quoting Chuck Hagenbuch <chuck@horde.org>:
>
> > Quoting Michael Cochrane <mike@graftonhall.co.nz>:
> >
> > > This patch fixes a problem with the Month view in Kronolith. When the
> last
> > few
> > > days of december are actually week 1 of the following year the year in
> the
> > link
> > > needs to be incremented.
> > >
> > > This patch checks for month == 12 and weekofyear == 1 and prints the
> > correct
> > > link
> >
> > Committed, thanks.
> >
> > -chuck
> >
> > --
> > "Because of your melodic nature, the moonlight never misses an
> > appointment."
> > - fortune cookie
> >
> > --
> > Horde Developers mailing list: http://horde.org/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: dev-unsubscribe@lists.horde.org
> >
>
>
> --
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>
>
---MOQ1007805228609460476d47405ff3ab91a2367ab9e0
Content-Type: text/plain; name="kronolith-remote.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="kronolith-remote.diff"
SW5kZXg6IGtyb25vbGl0aC9saWIvS3Jvbm9saXRoLnBocA0KPT09PT09PT09PT09PT09PT09PT09
PT09PT09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MSkpKQ0KPiAgICAgICAgICAgICAgICAgICByZXR1cm4gIjUz
IjsNCj4gICAgICAgICAgICAgIGVsc2UNCj4gICAgICAgICAgICAgICAgICAgcmV0dXJuICI1MiI7
DQo+ICAgICAgICAgfQ0KPiANCj4gICAgICAgICBpZiAoS3Jvbm9saXRoOjppc0xlYXBZZWFyKCR5
ZWFyKSkNCj4gICAgICAgICAgICAgJGRheXNJblllYXIgPSAzNjY7DQo+ICAgICAgICAgZWxzZQ0K
PiAgICAgICAgICAgICAkZGF5c0luWWVhciA9IDM2NTsNCj4gDQo+ICAgICAgICAgaWYgKCRkYXlz
SW5ZZWFyIC0gJGRheU9mWWVhciA8IDMgLSAkZGF5T2ZXZWVrKSByZXR1cm4gIjEiOw0KPiANCj4g
ICAgICAgICAkV2Vla051bWJlciA9IGZsb29yKCgkZGF5T2ZZZWFyICsgKDYgLSAkZGF5T2ZXZWVr
KSArICRkYXlPZldlZWtKYW4xKSAvIDcpOw0KPiAgICAgICAgIGlmICgkZGF5T2ZXZWVrSmFuMSA+
IDMpIHsgJFdlZWtOdW1iZXIgLT0gMTsgfQ0KPiANCj4gICAgICAgICByZXR1cm4gJFdlZWtOdW1i
ZXI7DQoNCg==
---MOQ1007805228609460476d47405ff3ab91a2367ab9e0--
>From andreas@dahlen.ws Date: Sat, 8 Dec 2001 15:24:15 +0100
Return-Path: <andreas@dahlen.ws>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 97938 invoked from network); 8 Dec 2001 14:19:49 -0000
Received: from as1-5-2.b.bonet.se (HELO tena.dahlen.ws) (194.236.143.39)
by clark.horde.org with SMTP; 8 Dec 2001 14:19:49 -0000
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by tena.dahlen.ws (8.12.1/8.12.1) with ESMTP id fB8EPC4k000717
for <dev@lists.horde.org>; Sat, 8 Dec 2001 15:25:13 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
by localhost.localdomain (AvMailGate-6.10.0.2) id 715-7073A75B;
Sat, 08 Dec 2001 15:24:15 +0100
Received: from 192.168.1.103 ( [192.168.1.103])
as user anj@localhost by www.dahlen.ws with HTTP;
Sat, 8 Dec 2001 15:24:15 +0100
Message-ID: <1007821455.3c12228f64f4f@www.dahlen.ws>
Date: Sat, 8 Dec 2001 15:24:15 +0100
From: =?ISO-8859-1?B?QW5kcmVhcyBEYWhs6W4=?= <andreas@dahlen.ws>
To: dev@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-AntiVirus: OK (checked by AntiVir Version 6.10.0.34)
Subject: Error cratingtables defined in category.sql
Hi!
The new modifications of "scripts/db/category.sql" isn't right.
When I try to use the file I get the following errors;
$ mysql < category.sql
ERROR 1074 at line 3: Too big column length for
column 'category_data' (max = 255). Use BLOB instead
If I change the columndefinition for category_data to text or varchar
(255) I get the following errors instead;
$ mysql < category.sql
ERROR 1064 at line 1: You have an error in your SQL syntax near 'NOW
() not null,
PRIMARY KEY (category_id)
)' at line 8
I use horde from CVS, checked out today, on RedHat 7.2 with MySQL
8.21 Distrib 3.23.41.
/Andreas
>From mike@graftonhall.co.nz Date: Sat, 8 Dec 2001 14:35:34 +0000
Return-Path: <mike@graftonhall.co.nz>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 98270 invoked from network); 8 Dec 2001 14:34:36 -0000
Received: from unknown (HELO graftonhall.co.nz) (210.54.179.59)
by clark.horde.org with SMTP; 8 Dec 2001 14:34:36 -0000
Received: from localhost [127.0.0.1]
by graftonhall.co.nz [10.0.0.4]
with SMTP (MDaemon.PRO.v5.0.1.R)
for <dev@lists.horde.org>; Sun, 09 Dec 2001 03:35:34 +1300
Received: from 10.0.0.4 ( [10.0.0.4])
as user mike@10.0.0.4 by webmail.graftonhall.co.nz with HTTP;
Sat, 8 Dec 2001 14:35:34 +0000
Message-ID: <1007822134.3c12253604f4f@webmail.graftonhall.co.nz>
Date: Sat, 8 Dec 2001 14:35:34 +0000
From: Michael Cochrane <mike@graftonhall.co.nz>
To: dev@lists.horde.org
References: <1007821455.3c12228f64f4f@www.dahlen.ws>
In-Reply-To: <1007821455.3c12228f64f4f@www.dahlen.ws>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 10.0.0.4
X-MDRemoteIP: 127.0.0.1
X-Return-Path: mike@graftonhall.co.nz
X-MDaemon-Deliver-To: dev@lists.horde.org
Subject: Re: [dev] Error cratingtables defined in category.sql
I don't believe that you can set a default value on a timestamp field in Mysql.
The field will always default to the current time.
removing the "DEFAULT NOW()" bit allowed the sql statements to run fine on my
system.
Mike
Quoting Andreas Dahlén <andreas@dahlen.ws>:
> Hi!
>
> The new modifications of "scripts/db/category.sql" isn't right.
> When I try to use the file I get the following errors;
>
> $ mysql < category.sql
> ERROR 1074 at line 3: Too big column length for
> column 'category_data' (max = 255). Use BLOB instead
>
> If I change the columndefinition for category_data to text or varchar
> (255) I get the following errors instead;
>
> $ mysql < category.sql
> ERROR 1064 at line 1: You have an error in your SQL syntax near 'NOW
> () not null,
> PRIMARY KEY (category_id)
> )' at line 8
>
> I use horde from CVS, checked out today, on RedHat 7.2 with MySQL
> 8.21 Distrib 3.23.41.
>
> /Andreas
>
>
>
> --
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>
>
>From pchytil@asp.ogi.edu Date: Sun, 9 Dec 2001 19:52:29 -0800
Return-Path: <pchytil@asp.ogi.edu>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 27178 invoked from network); 10 Dec 2001 03:52:29 -0000
Received: from asp.ogi.edu (129.95.94.10)
by clark.horde.org with SMTP; 10 Dec 2001 03:52:29 -0000
Received: from asp.ogi.edu (localhost [127.0.0.1])
by asp.ogi.edu (8.12.1/8.12.1) with ESMTP id fBA3qTEW027379
for <dev@lists.horde.org>; Sun, 9 Dec 2001 19:52:29 -0800
Received: (from nobody@localhost)
by asp.ogi.edu (8.12.1/8.12.1/Submit) id fBA3qTOk027378
for dev@lists.horde.org; Sun, 9 Dec 2001 19:52:29 -0800
X-Authentication-Warning: asp.ogi.edu: nobody set sender to pchytil@asp.ogi.edu using -f
Received: from 129.95.94.10 ( [129.95.94.10])
as user pchytil@asp.ogi.edu by mail.asp.ogi.edu with HTTP;
Sun, 9 Dec 2001 19:52:29 -0800
Message-ID: <1007956349.3c14317d18ed0@mail.asp.ogi.edu>
Date: Sun, 9 Dec 2001 19:52:29 -0800
From: Pavel Chytil <pchytil@asp.ogi.edu>
To: dev@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: update for Czech translation
Hello,
I have updated Czech translation for horde, imp, turba, kronolith, nag:
http://www.asp.ogi.edu/people/paja/cs_CZ.tgz
Thanks,
Pavel