<commit_before><?php
	global $CONFIG;
	header('Content-Type: application/rss+xml; charset=ISO-8859-1');
	//header('Content-type: text/xml');	

	$html .= '<?xml version="1.0" encoding="utf-8"?>';
	$html .= '<rss version="2.0">';
	$html .= '<channel>';
	$html .= '<title>NUSocial</title>';
	$html .= '<link>'.$CONFIG->url.'</link>';
	$html .= '<description>Connecting students.</description>';

	
	if(is_array($vars['ann']) && count($vars['ann'])!=0){	
		foreach ($vars['ann'] as $guid => $det) {
			
			$html .= "<item>";
			$html .= "<title>".$det["TITLE"]."</title>";
			$html .= "<link>".$det["LINK"]."</link>";
			$html .= "<guid>".$det["LINK"]."</guid>";
			$html .= "<pubDate>".date("D, d M Y H:i:s GMT",$det["DATE"])."</pubDate>";
			$html .= "<description>".$base_url.$det["DESC"]."</description>";
			$html .= "</item>";

		}
	}

	$html .= '</channel>';
	$html .= '</rss>';
	
	echo $html;	

<commit_msg>fixed the time issue in rss feed<commit_after><?php
	global $CONFIG;
	header('Content-Type: application/rss+xml; charset=ISO-8859-1');
	//header('Content-type: text/xml');	

	$html .= '<?xml version="1.0" encoding="utf-8"?>';
	$html .= '<rss version="2.0">';
	$html .= '<channel>';
	$html .= '<title>NUSocial</title>';
	$html .= '<link>'.$CONFIG->url.'</link>';
	$html .= '<description>Connecting students.</description>';

	
	if(is_array($vars['ann']) && count($vars['ann'])!=0){	
		foreach ($vars['ann'] as $guid => $det) {
			
			$html .= "<item>";
			$html .= "<title>".$det["TITLE"]."</title>";
			$html .= "<link>".$det["LINK"]."</link>";
			$html .= "<guid>".$det["LINK"]."</guid>";
			$html .= "<pubDate>".date("D, d M Y H:i:s \G\M\T",$det["DATE"])."</pubDate>";
			$html .= "<description>".$base_url.$det["DESC"]."</description>";
			$html .= "</item>";

		}
	}

	$html .= '</channel>';
	$html .= '</rss>';
	
	echo $html;	


{'fraction_non_alphanumeric': 0.31724511930585686, 'fraction_numerical': 0.01193058568329718, 'mean_word_length': 3.9069148936170213, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 2, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4928752', 'n_tokens_mistral': 744, 'n_tokens_neox': 689, 'n_words': 118}