comparison src/post.c @ 100:af51bf245bc3 noffle

[svn] Fix stupid Date: bug
author bears
date Fri, 26 May 2000 10:46:29 +0100
parents eb522db0d032
children 3b4db42990e0
comparison
equal deleted inserted replaced
99:651334f85995 100:af51bf245bc3
1 /* 1 /*
2 post.c 2 post.c
3 3
4 $Id: post.c 112 2000-05-19 15:14:41Z bears $ 4 $Id: post.c 123 2000-05-26 09:46:29Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
242 t = Utl_parseNewsDate( article.over.date ); 242 t = Utl_parseNewsDate( article.over.date );
243 if ( t == (time_t) -1 ) 243 if ( t == (time_t) -1 )
244 { 244 {
245 time( &t ); 245 time( &t );
246 Utl_newsDate( t, article.over.date ); 246 Utl_newsDate( t, article.over.date );
247 DynStr_app( s, "Date: " ); 247 }
248 DynStr_appLn( s, article.over.date ); 248 DynStr_app( s, "Date: " );
249 } 249 DynStr_appLn( s, article.over.date );
250 else
251 DynStr_appLn( s, article.over.date );
252 250
253 /* Ensure Message ID is present and valid */ 251 /* Ensure Message ID is present and valid */
254 if ( Cfg_replaceMsgId() ) 252 if ( Cfg_replaceMsgId() )
255 { 253 {
256 Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" ); 254 Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" );