首页 > 代码库 > Ecshop 时间戳转换

Ecshop 时间戳转换

$sql = "SELECT user_name,mobile,reg_time FROM " . $ecs->table(‘users‘) . " WHERE parent_id =".$user_id;
$result = $GLOBALS[‘db‘]->getAll($sql);
foreach($result AS $k=>$v){
$result[$k][‘restime‘] = date("Y-m-d",$v[‘reg_time‘]);
}
$smarty->assign(‘result‘, $result);

Ecshop 时间戳转换