From b12c3010666a1f0358117e8203129580ae1bb6c7 Mon Sep 17 00:00:00 2001 From: Jon Robertson Date: Wed, 16 Oct 2013 22:37:20 -0700 Subject: ACL.pm: Fix a place where the acl history was getting raw timestamp The acl_history table needed to get the DateTime object rather than the raw epoch timestamp in one place. This was causing errors adding new lines to the history. Change-Id: I9c971819484cd0b26cb2561549246c284afc55a1 Reviewed-on: https://gerrit.stanford.edu/1325 Reviewed-by: Russ Allbery Tested-by: Russ Allbery --- perl/Wallet/ACL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl/Wallet/ACL.pm b/perl/Wallet/ACL.pm index 5d9e8f2..15a380f 100644 --- a/perl/Wallet/ACL.pm +++ b/perl/Wallet/ACL.pm @@ -245,7 +245,7 @@ sub destroy { ah_action => 'destroy', ah_by => $user, ah_from => $host, - ah_on => $time); + ah_on => strftime ('%Y-%m-%d %T', localtime $time)); $self->{schema}->resultset('AclHistory')->create (\%record); $guard->commit; }; -- cgit v1.2.3