최신글의 날짜가 전부 오늘날짜로 동일하게 나옵니다
본문
최신글의 글쓴 날짜가 동일하게 나오는 이유가 뭔지 모르겠습니다
동일하게 나오는 날짜들은 현재 날짜들로 다 나옵니다
고수님들의 도움 부탁드립니다
감사합니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 네이버 http://html.nhndesign.com/?mid=ui_pattern_list 참고
// 리메이크: Terrorboy
?>
<link rel="stylesheet" href="<?=$latest_skin_path?>/css/style.css" type="text/css" />
<!--ui object -->
<div class="section_ul">
<h2><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><em class="to-bottom"></em><?=$board[bo_subject]?></a></h2>
<ul>
<?
for ($i=0; $i<count($list); $i++) {
// 최근 게시물 시간 정렬 수정
$list[$i]['wr_datetime'] = date("Y.m.d", time($list[$i]['wr_datetime']));
?>
<li>
<span class="bu"></span>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
?>
<span class="time"><?=$list[$i]['wr_datetime']?></span>
</li>
<? } ?>
<? if (count($list) == 0) { ?>
<li><div class="none">최근 게시물이 없습니다.</div></li>
<? } ?>
</ul>
</div>
<!--//ui object -->
답변 3
으로 되어야 할 것 같은데요.
많은 도움이 되었습니다. 감사합니다.