Lines 94-100
my $from_placed_on = eval { dt_from_string( scalar $input->param('from') ) } ||
Link Here
|
94 |
my $to_placed_on = eval { dt_from_string( scalar $input->param('to') ) } || dt_from_string; |
94 |
my $to_placed_on = eval { dt_from_string( scalar $input->param('to') ) } || dt_from_string; |
95 |
unless ( $input->param('from') ) { |
95 |
unless ( $input->param('from') ) { |
96 |
# Fill the form with year-1 |
96 |
# Fill the form with year-1 |
97 |
$from_placed_on->subtract( years => 1 ); |
97 |
$from_placed_on->set_time_zone('floating')->subtract( years => 1 ); |
98 |
} |
98 |
} |
99 |
$filters->{from_placed_on} = output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ), |
99 |
$filters->{from_placed_on} = output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ), |
100 |
$filters->{to_placed_on} = output_pref( { dt => $to_placed_on, dateformat => 'iso', dateonly => 1 } ), |
100 |
$filters->{to_placed_on} = output_pref( { dt => $to_placed_on, dateformat => 'iso', dateonly => 1 } ), |
101 |
- |
|
|