Re: BUG REPORT tin 1.9.0 release 20060228 ("Ardlussa") [UNIX]

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Sun, Mar 26, 2006 at 02:09:13PM +0300, Teemu Likonen wrote:
> This is a feature wish. In config menu there are "Quote line when..."
> settings for follow ups, cross-posting, and mailing. With %D one can
> insert (localized) date string to quote line. I'd like %D to insert the
> date string defined in the "Format string for display of dates" setting
> instead.
> 
> I think that this (localized) date string has too much information for
> quote string and actually it do not provide standard Finnish date
> string. That's I use "Format string of display of dates" and would like
> it to apply to dates in quote lines as well.

untested

--- misc.c	2006-03-11 11:21:31.422746273 +0100
+++ misc.c	2006-03-26 14:54:16.173110676 +0200
@@ -1196,7 +1196,9 @@
 					break;
 
 				case 'D':	/* Articles Date */
-					STRCPY(tbuf, BlankIfNull(pgart.hdr.date));
+					if (!my_strftime(tbuf, LEN - 1, tinrc.date_format, localtime(&arts[this_resp].date))) {
+						STRCPY(tbuf, BlankIfNull(pgart.hdr.date));
+					}
 					break;
 
 				case 'F':	/* Articles Address+Name */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.