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:
commit
68c064feee
|
@ -230,7 +230,7 @@ sub data_consumer ($$) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ignore the timestamp in the XML and use the file timestamp instead
|
# 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
|
# Double check that the file exists
|
||||||
if (! -f $file_name) {
|
if (! -f $file_name) {
|
||||||
|
|
Loading…
Reference in New Issue