연도 바뀌면 글 작성일자 연도 표시하기
페이지 정보
관련링크
본문
lib/common.lib.php
당일인 경우 시간으로 표시함 주석문이 있는 부분을 아래로 수정.
// 당일인 경우 시간으로 표시함
$list['datetime'] = substr($list['wr_datetime'],0,10);
$list['datetime2'] = $list['wr_datetime'];
if ($list['datetime'] == G5_TIME_YMD)
$list['datetime2'] = substr($list['datetime2'],11,5);
elseif (substr($list['datetime'],0,4) == substr(G5_TIME_YMD,0,4))
$list['datetime2'] = substr($list['datetime2'],5,5);
else
$list['datetime2'] = str_replace('-','.',substr($list['datetime2'],0,7));
bbs/new.php (이 파일은 원글과 코멘트 주석으로 시작하는 부분 두곳 똑같이 수정)
// 당일인 경우 시간으로 표시함
$datetime = substr($row3['wr_datetime'],0,10);
$datetime2 = $row3['wr_datetime'];
if ($datetime == G5_TIME_YMD) {
$datetime2 = substr($datetime2,11,5);
} elseif (substr($datetime2,0,4) == substr(G5_TIME_YMD,0,4)) {
$datetime2 = substr($datetime2,5,5);
} else {
$datetime2 = str_replace('-', '.', substr($datetime2,0,7));
}
루시웹 보조 관리자 계정
0
댓글목록
등록된 댓글이 없습니다.