Revision 911
Added by Matthias almost 16 years ago
view.php | ||
---|---|---|
194 | 194 |
if(isset($groups[$post['group_id']]['active']) AND $groups[$post['group_id']]['active'] != false) { // Make sure parent group is active |
195 | 195 |
$uid = $post['posted_by']; // User who last modified the post |
196 | 196 |
// Workout date and time of last modified post |
197 |
$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE); |
|
198 |
$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE); |
|
197 |
if ($post['published_when'] > $post['posted_when']) { |
|
198 |
$post_date = gmdate(DATE_FORMAT, $post['published_when']+TIMEZONE); |
|
199 |
$post_time = gmdate(TIME_FORMAT, $post['published_when']+TIMEZONE); |
|
200 |
} else { |
|
201 |
$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE); |
|
202 |
$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE); |
|
203 |
} |
|
199 | 204 |
$publ_date = date(DATE_FORMAT,$post['published_when']); |
200 | 205 |
$publ_time = date(TIME_FORMAT,$post['published_when']); |
201 | 206 |
// Work-out the post link |
... | ... | |
290 | 295 |
if(isset($groups[$post['group_id']]['active']) AND $groups[$post['group_id']]['active'] != false) { // Make sure parent group is active |
291 | 296 |
$uid = $post['posted_by']; // User who last modified the post |
292 | 297 |
// Workout date and time of last modified post |
293 |
$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE); |
|
294 |
$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE); |
|
298 |
if ($post['published_when'] > $post['posted_when']) { |
|
299 |
$post_date = gmdate(DATE_FORMAT, $post['published_when']+TIMEZONE); |
|
300 |
$post_time = gmdate(TIME_FORMAT, $post['published_when']+TIMEZONE); |
|
301 |
} else { |
|
302 |
$post_date = gmdate(DATE_FORMAT, $post['posted_when']+TIMEZONE); |
|
303 |
$post_time = gmdate(TIME_FORMAT, $post['posted_when']+TIMEZONE); |
|
304 |
} |
|
295 | 305 |
$publ_date = date(DATE_FORMAT,$post['published_when']); |
296 | 306 |
$publ_time = date(TIME_FORMAT,$post['published_when']); |
297 | 307 |
// Get group id, title, and image |
Also available in: Unified diff
changed handling of post_date in news modul (thanks to susigross)