Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Commit 2d895d2

Browse files
committed
Fix
1 parent 4444219 commit 2d895d2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/class/github/issues.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class issues extends github
99
{
1010
function __construct($data = null)
1111
{
12-
$this->setEvent("push");
12+
$this->setEvent("issue");
1313
if ($data != null) {
1414
$this->setData($data);
1515
}

src/class/github/pullrequest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class pullrequest extends github
2020

2121
function __construct($data = null)
2222
{
23-
$this->setEvent("push");
23+
$this->setEvent("pullrequest");
2424
if ($data != null) {
2525
$this->setData($data);
2626
}

src/class/github/push.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getMessage(): string
3737
3838
> Commit {$commit['id']}:
3939
> {$commit['message']}
40-
> on {$timestamp}
40+
> on $timestamp
4141
> [查看详情]({$commit['url']})
4242
4343
EOF;

src/function/time.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function UTC_to_time(string $utcTime): string
1010
// 2021-09-17T20:43:46+08:00
1111
$utcTime = trim($utcTime);
1212
preg_match("/^(\d{4})-(\d{1,2})-(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})([+-]\d{1,2}):(\d{1,2})$/i", $utcTime, $time);
13+
echo "UTC to Time:\n";
14+
print_r($time);
1315
$_time = [
1416
"y" => (int)$time[1],
1517
"m" => (int)$time[2],

0 commit comments

Comments
 (0)