From 8fd4b0f4221923b9157d035721fa1c16a1d1f08a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 20 Jun 2019 16:00:59 +0100 Subject: [PATCH] Bug 22741: Make updated_on timezone aware in Koha::Patron --- Koha/Patron.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 04b54a3ed6..edf6491a3e 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -192,6 +192,7 @@ sub store { } $self->trim_whitespaces; + $self->updated_on( dt_from_string ); unless ( $self->in_storage ) { #AddMember @@ -261,7 +262,7 @@ sub store { my $info; my $from_storage = $self_from_storage->unblessed; my $from_object = $self->unblessed; - my @skip_fields = (qw/lastseen/); + my @skip_fields = (qw/lastseen updated_on/); for my $key ( keys %{$from_storage} ) { next if any { /$key/ } @skip_fields; if ( -- 2.20.1