Post by openshop » Sun Apr 26, 2015 10:19 am

/admin/model/sale/order.php

Code: Select all

			$message .= $language->get('text_date_added') . ' ' . date($language->get('date_format_short'), strtotime($order_info['date_added'])) . "\n\n";
這裡顯示的日期是訂單日期,不是更新日期,請問要如何修正?

New member

Posts

Joined
Sat Dec 14, 2013 4:16 pm

Post by raymondization » Mon Apr 27, 2015 11:09 am

在opencart的時間是根據你的server time zone的

如果時間不同應該就是你的server和你不是在同一個時區

你可以看看下面的post修改你的time zone:
http://forum.opencart.com/viewtopic.php?t=65883

OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


New member

Posts

Joined
Wed Sep 26, 2012 11:19 am

Post by openshop » Mon Apr 27, 2015 11:18 am

不是時區不同
我上面寫的那段程式碼是抓取購買的時間
並不是訂單狀態更新的時間

New member

Posts

Joined
Sat Dec 14, 2013 4:16 pm

Post by raymondization » Mon Apr 27, 2015 11:26 am

試試將date_added轉做date_modified

OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


New member

Posts

Joined
Wed Sep 26, 2012 11:19 am

Post by openshop » Mon Apr 27, 2015 12:20 pm

可以了!謝謝你!

New member

Posts

Joined
Sat Dec 14, 2013 4:16 pm
Who is online

Users browsing this forum: Baidu [Spider] and 3 guests