--- class.tx_weeaargooglesitemap_pi1.php.org	2011-01-06 13:37:40.000000000 +0100
+++ class.tx_weeaargooglesitemap_pi1.php	2011-01-06 14:17:19.000000000 +0100
@@ -306,18 +306,24 @@
                      $link = preg_replace("/<a href=\"(.*)\".*/", "\\1", $link);
                      
                      $string = "   <loc>{$link}</loc>\n";
-                     $string .= "   <lastmod>".gmdate("Y-m-d\TH:i:s\Z", $row["tstamp"])."</lastmod>\n";
+#                     $string .= "   <lastmod>".gmdate("Y-m-d\TH:i:s\Z", $row["tstamp"])."</lastmod>\n";
+                     $string .= "   <lastmod>".date('c', $row["tstamp"])."</lastmod>\n";
                      $string .= "   <priority>0.5</priority>\n";
                      
                      /* news sitemap */                        
                      if ($this->defaultCode == 'google')
                      {
                         $string .= "   <news:news>\n";
-                        $string .= "      <news:publication_date>".gmdate("Y-m-d\TH:i:s\Z", $row["tstamp"])."</news:publication_date>\n";
-                        
+                        $string .= "      <news:publication>\n";
+                        $string .= "         <news:name>" . htmlspecialchars($GLOBALS['TSFE']->tmpl->setup['sitetitle']) . "</news:name>\n";
+                        $string .= "         <news:language>" . htmlspecialchars($GLOBALS['TSFE']->lang) . "</news:language>\n";
+                        $string .= "      </news:publication>\n";
+                        $string .= "      <news:publication_date>" . date('c', $row["tstamp"]) . "</news:publication_date>\n";
+                        $string .= "      <news:title>" . htmlspecialchars($title) . "</news:title>\n";
+#                        $string .= "      <news:publication_date>".gmdate("Y-m-d\TH:i:s\Z", $row["tstamp"])."</news:publication_date>\n";
                         if ($row['keywords'] != '')
                         {
-                           $string .= "  	   <news:keywords>" . htmlspecialchars($row['keywords']) . "</news:keywords>\n";
+                          $string .= "      <news:keywords>" . htmlspecialchars($row['keywords']) . "</news:keywords>\n";
                            //			  	<news:stock_tickers>MSFT, NYSE:HD</news:stock_tickers>
                         }
                         $string .= "   </news:news>\n";
@@ -372,7 +378,8 @@
 			
 			$string = "<url>\n";
 			$string.= "   <loc>{$this->url}".$link."</loc>\n";
-			$string.= "   <lastmod>".gmdate("Y-m-d\TH:i:s\Z", $time)."</lastmod>\n";
+#			$string.= "   <lastmod>".gmdate("Y-m-d\TH:i:s\Z", $time)."</lastmod>\n";
+                        $string .= "   <lastmod>".date('c', $time)."</lastmod>\n";
 
 
 			$priority = ($this->data[$pages_row[ $id_name ]][1]?$this->data[$pages_row[ $id_name ]][1]:"0.5");
