fhem.pl: fix saving the statefiles with %L (Forum #129014)
git-svn-id: https://svn.fhem.de/fhem/trunk@26379 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1718,7 +1718,12 @@ CommandSave($$)
|
||||
@structChangeHist = ();
|
||||
DoTrigger("global", "SAVE", 1);
|
||||
|
||||
restoreDir_saveFile($restoreDir, $attr{global}{statefile}) if(!configDBUsed());
|
||||
if(!configDBUsed()) {
|
||||
my @t = localtime(gettimeofday());
|
||||
my $stf = ResolveDateWildcards(AttrVal("global", "statefile", ""), @t);
|
||||
restoreDir_saveFile($restoreDir, $stf);
|
||||
}
|
||||
|
||||
$data{saveID} = createUniqueId(); # for configDB, #126323
|
||||
my $ret = WriteStatefile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user