1
0
Fork 0
forked from blallo/rss-bridge

Update ReadComicsBridge.php

This commit is contained in:
niawag 2016-10-06 16:39:18 +02:00 committed by GitHub
parent 952bde0425
commit f8dafe6b10

View file

@ -18,7 +18,7 @@ class ReadComicsBridge extends BridgeAbstract{
function parseDateTimestamp($element){ function parseDateTimestamp($element){
$guessedDate = $element->find('span',0)->plaintext; $guessedDate = $element->find('span',0)->plaintext;
$guessedDate = strptime($guessedDate, '%d/%m/%Y'); $guessedDate = strptime($guessedDate, '%m/%d/%Y');
$timestamp = mktime(0, 0, 0, $guessedDate['tm_mon'] + 1, $guessedDate['tm_mday'], date('Y')); $timestamp = mktime(0, 0, 0, $guessedDate['tm_mon'] + 1, $guessedDate['tm_mday'], date('Y'));
return $timestamp; return $timestamp;