no message
This commit is contained in:
parent
f8d1c0ed66
commit
d72da0a1b7
@ -23,9 +23,13 @@ class Dog extends Base {
|
||||
|
||||
$aGitHub = json_decode($r, true);
|
||||
|
||||
$tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at
|
||||
$tmp = strtotime($tmp);
|
||||
$tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600));
|
||||
|
||||
$aGitHubNew = [];
|
||||
$aGitHubNew["⭐️星星"] = $aGitHub["stargazers_count"];
|
||||
$aGitHubNew["♻️最后更新"] = str_replace("T", " ", rtrim($aGitHub["pushed_at"], "Z")); // 替换T为空格并去掉Z
|
||||
$aGitHubNew["♻️最后更新"] = $tmpDate; // 替换T为空格并去掉Z
|
||||
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];
|
||||
$aGitHubNew["forks"] = $aGitHub["forks_count"];
|
||||
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user