diff --git a/byPeriodSlice.php b/byPeriodSlice.php index 84fcf6e..a94c1b8 100644 --- a/byPeriodSlice.php +++ b/byPeriodSlice.php @@ -75,7 +75,7 @@ $summary = []; foreach ($messages as $message) { $sender = trim($xpath->evaluate('substring-before(substring-after(normalize-space(div[@class = "hidden-xs"]/following-sibling::text()[1]), "By "), " ยท #")', $message), '"'); - $timestamp = $xpath->evaluate('substring-before(substring-after(.//script[@class = "timedisp"], "DisplayShortTime( "), " ,")', $message); + $timestamp = $xpath->evaluate('substring-before(substring-after(.//script[@class = "timedisp"], "DisplayShortTime("), ",")', $message); $date = new DateTime(null, $tz); $date->setTimestamp($timestamp / 1000000000);