Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 910)
+++ trunk/CHANGELOG	(revision 911)
@@ -10,7 +10,9 @@
 # = Bugfix
 ! = Update/Change
 
-------------------------------------- 2.8.0 --------------------------------------
+------------------------------------- 2.8.0 -------------------------------------
+17-Jan-2009 Matthias Gallas
+!	changed handling of post_date in news modul (thanks to susigross)
 13-Jan-2009 Christian Sommer
 -	removed the obsolete Codepress framework from the include folder
 +	added Javascript syntax highlighting framework EditArea as replacement for Codepress
Index: trunk/wb/modules/news/view.php
===================================================================
--- trunk/wb/modules/news/view.php	(revision 910)
+++ trunk/wb/modules/news/view.php	(revision 911)
@@ -194,8 +194,13 @@
 			if(isset($groups[$post['group_id']]['active']) AND $groups[$post['group_id']]['active'] != false) { // Make sure parent group is active
 				$uid = $post['posted_by']; // User who last modified the post
 				// Workout date and time of last modified post
-				$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE);
-				$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE);
+				if ($post['published_when'] > $post['posted_when']) {
+					$post_date = gmdate(DATE_FORMAT, $post['published_when']+TIMEZONE);
+					$post_time = gmdate(TIME_FORMAT, $post['published_when']+TIMEZONE);
+				} else {
+					$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE);
+					$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE);
+				}
 				$publ_date = date(DATE_FORMAT,$post['published_when']);
 				$publ_time = date(TIME_FORMAT,$post['published_when']);
 				// Work-out the post link
@@ -290,8 +295,13 @@
 		if(isset($groups[$post['group_id']]['active']) AND $groups[$post['group_id']]['active'] != false) { // Make sure parent group is active
 			$uid = $post['posted_by']; // User who last modified the post
 			// Workout date and time of last modified post
-			$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE);
-			$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE);
+			if ($post['published_when'] > $post['posted_when']) {
+				$post_date = gmdate(DATE_FORMAT, $post['published_when']+TIMEZONE);
+				$post_time = gmdate(TIME_FORMAT, $post['published_when']+TIMEZONE);
+			} else {
+				$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE);
+				$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE);
+			}
 			$publ_date = date(DATE_FORMAT,$post['published_when']);
 			$publ_time = date(TIME_FORMAT,$post['published_when']);
 			// Get group id, title, and image
