Hi Atanas

 

I just have one question regarding a certain section of your code, which I’ve already seen in the other Static stat from OTRS.

What does this do?

 

# get current time

    my ($s, $m, $h, $D, $M, $Y);

    my ($Ymin, $Ymax, $Select, %Agents, @row);

 

    ($s, $m, $h, $D, $M, $Y) = $Self->{TimeObject}->SystemTime2Date(

        SystemTime => $Self->{TimeObject}->SystemTime(),

    );

 

    # get one month before

    if ($M == 1) {

        $M = 12;

        $Y = $Y - 1;

    }

    else {

        $M = $M -1;

    }

 

Thanks and regards

 

María Alejandra Piedra

Unidad de Informática y Sistemas de Información

IICA (506) 2216-0171

Alejandra.Piedra@iica.int