summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Robertson <jonrober@stanford.edu>2013-10-16 22:37:20 -0700
committerRuss Allbery <eagle@eyrie.org>2013-11-05 12:33:26 -0800
commitb12c3010666a1f0358117e8203129580ae1bb6c7 (patch)
treef29986822058191e7895345447778decb83eea6a
parent01b4e4257f9bdd82ebf1f5b0cc0a07aae70a17f1 (diff)
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 <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
-rw-r--r--perl/Wallet/ACL.pm2
1 files changed, 1 insertions, 1 deletions
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;
};