[Rt-commit] r18836 - in rt/3.999/branches/datetime: lib/RT/Crypt
sartak at bestpractical.com
sartak at bestpractical.com
Wed Mar 18 13:17:08 EDT 2009
Author: sartak
Date: Wed Mar 18 13:17:07 2009
New Revision: 18836
Modified:
rt/3.999/branches/datetime/lib/RT/Crypt/GnuPG.pm
rt/3.999/branches/datetime/share/html/Admin/Elements/ShowKeyInfo
Log:
Use RT::DateTime in some GPG codepaths
Modified: rt/3.999/branches/datetime/lib/RT/Crypt/GnuPG.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Crypt/GnuPG.pm (original)
+++ rt/3.999/branches/datetime/lib/RT/Crypt/GnuPG.pm Wed Mar 18 13:17:07 2009
@@ -54,6 +54,7 @@
use GnuPG::Interface;
use RT::EmailParser ();
use RT::Util 'safe_run_child';
+use RT::DateTime;
=head1 name
Modified: rt/3.999/branches/datetime/share/html/Admin/Elements/ShowKeyInfo
==============================================================================
--- rt/3.999/branches/datetime/share/html/Admin/Elements/ShowKeyInfo (original)
+++ rt/3.999/branches/datetime/share/html/Admin/Elements/ShowKeyInfo Wed Mar 18 13:17:07 2009
@@ -56,16 +56,16 @@
% }
<tr><th><% _('Created') %>:</th>
-<td><% $res{'info'}{'created'}? $res{'info'}{'created'}->as_string( Time => 0 ): _('never') %></td></tr>
+<td><% $res{'info'}{'created'}? $res{'info'}{'created'}->date : _('never') %></td></tr>
<tr><th><% _('Expire') %>:</th>
-<td><% $res{'info'}{'expire'}? $res{'info'}{'expire'}->as_string( Time => 0 ): _('never') %></td></tr>
+<td><% $res{'info'}{'expire'}? $res{'info'}{'expire'}->date : _('never') %></td></tr>
% foreach my $uinfo( @{ $res{'info'}{'user'} } ) {
<tr><th><% _('User (Created - expire)') %>:</th>
<td><% $uinfo->{'string'} %>\
-(<% $uinfo->{'created'}? $uinfo->{'created'}->as_string( Time => 0 ): _('never') %> - \
-<% $uinfo->{'expire'}? $uinfo->{'expire'}->as_string( Time => 0 ): _('never') %>)
+(<% $uinfo->{'created'}? $uinfo->{'created'}->date : _('never') %> - \
+<% $uinfo->{'expire'}? $uinfo->{'expire'}->date : _('never') %>)
</td></tr>
% }
More information about the Rt-commit
mailing list