View | Details | Raw Unified | Return to bug 37831
Collapse All | Expand All

(-)a/Koha/Object.pm (-1 / +3 lines)
Lines 859-864 sub _recursive_fixup { Link Here
859
                        $value = $dtf->format_date($dt);
859
                        $value = $dtf->format_date($dt);
860
                    } else {
860
                    } else {
861
                        my $dt = Koha::DateTime::Format::RFC3339->parse_datetime($value);
861
                        my $dt = Koha::DateTime::Format::RFC3339->parse_datetime($value);
862
                        $dt->set_time_zone(C4::Context->tz);
862
                        $value = $dtf->format_datetime($dt);
863
                        $value = $dtf->format_datetime($dt);
863
                    }
864
                    }
864
                } catch {
865
                } catch {
Lines 874-879 sub attributes_from_api { Link Here
874
    my ( $self, $from_api_params ) = @_;
875
    my ( $self, $from_api_params ) = @_;
875
876
876
    my $from_api_mapping = $self->from_api_mapping;
877
    my $from_api_mapping = $self->from_api_mapping;
878
    use Data::Printer colored => 1; warn p $from_api_params;
877
879
878
    my $params;
880
    my $params;
879
    my $columns_info = $self->_result->result_source->columns_info;
881
    my $columns_info = $self->_result->result_source->columns_info;
Lines 898-903 sub attributes_from_api { Link Here
898
        }
900
        }
899
    }
901
    }
900
902
903
    use Data::Printer colored => 1; warn p $params;
901
    return $params;
904
    return $params;
902
}
905
}
903
906
904
- 

Return to bug 37831