Merge branch '4673-mal-funcionamiento-use-xml-timestamp' into 'develop'

Changed parameter of use_xml_timestamp

See merge request artica/pandorafms!2797
This commit is contained in:
Daniel Rodriguez 2019-10-15 17:28:59 +02:00
commit 68c064feee
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ sub data_consumer ($$) {
}
# Ignore the timestamp in the XML and use the file timestamp instead
$xml_data->{'timestamp'} = strftime ("%Y-%m-%d %H:%M:%S", localtime((stat($file_name))[9])) if ($pa_config->{'use_xml_timestamp'} eq '1' || ! defined ($xml_data->{'timestamp'}));
$xml_data->{'timestamp'} = strftime ("%Y-%m-%d %H:%M:%S", localtime((stat($file_name))[9])) if ($pa_config->{'use_xml_timestamp'} eq '0' || ! defined ($xml_data->{'timestamp'}));
# Double check that the file exists
if (! -f $file_name) {