[Rt-commit] r18723 - in rt/3.999/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Mar 5 20:22:37 EST 2009


Author: sartak
Date: Thu Mar  5 20:22:37 2009
New Revision: 18723

Modified:
   rt/3.999/trunk/   (props changed)
   rt/3.999/trunk/lib/RT/DateTime.pm

Log:
 r81000 at onn:  sartak | 2009-03-05 20:20:20 -0500
 Have strftime return unset if the datetime is unset; this way we don't need to add custom logic to every formatter


Modified: rt/3.999/trunk/lib/RT/DateTime.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/DateTime.pm	(original)
+++ rt/3.999/trunk/lib/RT/DateTime.pm	Thu Mar  5 20:22:37 2009
@@ -80,6 +80,13 @@
     return $dt;
 }
 
+sub strftime {
+    my $self = shift;
+
+    return 'unset' if $self->is_unset;
+    return $self->SUPER::strftime(@_);
+}
+
 sub _canonicalize_self {
     my $self = shift;
     my %args = (


More information about the Rt-commit mailing list