MT 2068 : Fixed scheduling guided reports

This commit is contained in:
Matthias Meusburger 2009-10-16 11:03:27 +02:00 committed by Henri-Damien LAURENT
parent fabe0a4e19
commit ee0b0fca49
1 changed files with 7 additions and 2 deletions

View File

@ -52,8 +52,13 @@ my $mode = $input->param('mode');
my $id = $input->param('id');
if ( $mode eq 'job_add' ) {
my $startdate =
join( '', ( split m|/|, $input->param('startdate') )[ 2, 0, 1 ] );
# Retrieving the date according to the dateformat syspref
my $c4date = C4::Dates->new($input->param('startdate'));
# Formatting it for Schedule::At
my $startdate = join('', (split /-/, $c4date->output("iso")));
my $starttime = $input->param('starttime');
my $recurring = $input->param('recurring');
$starttime =~ s/\://g;