Skip to content

Commit 7024f9d

Browse files
authored
fix parsing date, there could be more than 30 chars in date (CET/CEST) (Cacti#5382)
1 parent c67daa6 commit 7024f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/splice_rrd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ function preProcessXML(&$output) {
850850
$row = strpos($line, '<row>');
851851

852852
if ($row > 0) {
853-
$date = trim(substr($line,$comment_start+30,11));
853+
$date = trim(substr($line,strpos($line,'/')+1,11));
854854
}
855855

856856
if ($comment_start == 0) {

0 commit comments

Comments
 (0)