Include timestamp in .ini files

This commit is contained in:
Henrik Brix Andersen 2012-07-27 14:33:14 +02:00
parent 9f719d42bc
commit f0579e59bd

View file

@ -737,7 +737,8 @@ sub write_ini {
open my $fh, '>', $file;
binmode $fh, ':utf8';
printf $fh "# generated by Slic3r $Slic3r::VERSION\n";
my $localtime = localtime;
printf $fh "# generated by Slic3r $Slic3r::VERSION on $localtime\n";
foreach my $category (sort keys %$ini) {
printf $fh "\n[%s]\n", $category if $category ne '_';
foreach my $key (sort keys %{$ini->{$category}}) {