MT#5879 Fix creating of datetime with full parameters.

Zone can be moved to class variable?Later.
ipeshinskaya/InvoiceTemplate5
Irina Peshinskaya 12 years ago committed by Victor Seva
parent 1fd67eb308
commit fab290e99a

@ -21,6 +21,9 @@ sub epoch_local {
sub new_local {
my %params;
@params{qw/year month day hour minute second nanosecond/} = @_;
foreach(keys %params){
!defined $params{$_} and delete $params{$_};
}
return DateTime->new(
time_zone => DateTime::TimeZone->new(name => 'local'),
%params,

Loading…
Cancel
Save