Fixed timestamp on Pixiv bridge (#785)
This commit is contained in:
parent
ad82d50bbd
commit
e7dab5d351
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ class PixivBridge extends BridgeAbstract {
|
|||
|
||||
preg_match_all($timeRegex, $result['url'], $dt, PREG_SET_ORDER, 0);
|
||||
$elementDate = DateTime::createFromFormat('YmdHis',
|
||||
$dt[0][1] . $dt[0][2] . $dt[0][3] . $dt[0][4] . $dt[0][5] . $dt[0][6]);
|
||||
$dt[0][1] . $dt[0][2] . $dt[0][3] . $dt[0][4] . $dt[0][5] . $dt[0][6],
|
||||
new DateTimeZone('Asia/Tokyo'));
|
||||
$item['timestamp'] = $elementDate->getTimestamp();
|
||||
|
||||
$item['content'] = "<img src='" . $this->cacheImage($result['url'], $item['id']) . "' />";
|
||||
|
|
Loading…
Reference in a new issue