Made a plug-in, the middle of the need for the last time to publish the issue!
Because I just registered the number, need to blog, I asked the form of a question published!!
First, the time in the system's table is the second.
Select Dateline from ". Db::table (' Portal_article_title ')
Then used the Discuz, function_core.php "Dgmdate method"
$sql = "Select Dateline from". Db::table (' Portal_article_title ') "
Results: 1411613146
It's not going to work.
First Type: Date method
The second type: The Dmgdate method provided by Discuz
Date method Self-Baidu bar, online has
Actually dmgdate is the same as date!
Dgmdate ($sql ["Dateline"])
Result: 2014-9-24 18:04
Reply content:
Made a plug-in, the middle of the need for the last time to publish the issue!
Because I just registered the number, need to blog, I asked the form of a question published!!
First, the time in the system's table is the second.
Select Dateline from ". Db::table (' Portal_article_title ')
Then used the Discuz, function_core.php "Dgmdate method"
$sql = "Select Dateline from". Db::table (' Portal_article_title ') "
Results: 1411613146
It's not going to work.
First Type: Date method
The second type: The Dmgdate method provided by Discuz
Date method Self-Baidu bar, online has
Actually dmgdate is the same as date!
Dgmdate ($sql ["Dateline"])
Result: 2014-9-24 18:04
Get time stamp after formatting, awesome.