2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-12 02:39:57 +00:00

statistics2.cgi: modify svn command

git-svn-id: https://svn.fhem.de/fhem/trunk@14604 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2017-06-30 17:01:27 +00:00
parent 71e85d96fd
commit dd5916c663

View File

@ -93,7 +93,7 @@ sub insertDB() {
if (defined($decoded->{'system'}{'revision'})) {
# replace revision number with revision date
my $rev = $decoded->{'system'}{'revision'};
my $d = (split(/ /,qx(svn info -r $rev $fhemPathSvn|grep Date:)))[3];
my $d = (split(/ /,qx(sudo -u rko /usr/bin/svn info -r $rev $fhemPathSvn|grep Date:)))[3];
my ($year,$mon,$mday) = split(/-/,$d);
$decoded->{'system'}{'revdate'} = mktime(0,0,7,$mday,($mon-1),($year-1900),0,0,0);
$json = encode_json $decoded;