From a9cd44f4430f107bf0c4323d39967e98b78a529b Mon Sep 17 00:00:00 2001 From: david62311 Date: Fri, 30 Oct 2020 22:37:03 -0400 Subject: [PATCH] Registered date update The date was showing the current date instead of the registered date. The proposal is a fix for that. It is a similar code to what is used on the profile.php page. --- item.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/item.php b/item.php index b0b768ec5..d9aa1d0d0 100644 --- a/item.php +++ b/item.php @@ -49,7 +49,6 @@ $minimum_bid = $auction_data['minimum_bid']; $high_bid = $auction_data['current_bid']; $customincrement = $auction_data['increment']; -$seller_reg = $dt->formatDate($auction_data['reg_date']); // sort out counter if (!isset($auction_data['counter'])) { @@ -461,6 +460,9 @@ $shipping = $MSG['867']; } +$DATE = ($auction_data['reg_date']); +$mth = 'MON_0'.date('m', $DATE); + $template->assign_vars(array( 'ID' => $auction_data['id'], 'TITLE' => htmlspecialchars($auction_data['title']), @@ -500,7 +502,7 @@ 'UPLOADEDPATH' => UPLOAD_FOLDER, 'BNIMG' => get_lang_img('buy_it_now.gif'), - 'SELLER_REG' => $seller_reg, + 'SELLER_REG' => $MSG[$mth] . ' ' . date('d, Y', $DATE), 'SELLER_ID' => $auction_data['user'], 'SELLER_NICK' => $auction_data['nick'], 'SELLER_TOTALFB' => $total_rate,