Bugfix: wrong month number in output

This commit is contained in:
Alessandro Ranellucci 2011-12-30 18:57:58 +01:00
parent f08ebe97b2
commit 4b2bd7f779

View File

@ -446,7 +446,7 @@ sub export_gcode {
# write some information
my @lt = localtime;
printf $fh "; generated by Slic3r $Slic3r::VERSION on %02d-%02d-%02d at %02d:%02d:%02d\n\n",
$lt[5] + 1900, $lt[4], $lt[3], $lt[2], $lt[1], $lt[0];
$lt[5] + 1900, $lt[4]+1, $lt[3], $lt[2], $lt[1], $lt[0];
for (qw(layer_height perimeters solid_layers fill_density nozzle_diameter filament_diameter
perimeter_speed infill_speed travel_speed extrusion_width_ratio scale)) {