[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.11-5-g0cf3eb7

Shawn Moore shawn at bestpractical.com
Tue Jun 2 17:09:49 EDT 2015


The branch, 4.2-trunk has been updated
       via  0cf3eb779a8ce2a26771bf9378ef44553ce2437c (commit)
      from  c5377681559b0066c57b50cb1a5683db5e42c0ed (commit)

Summary of changes:
 lib/RT/Interface/Email.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 0cf3eb779a8ce2a26771bf9378ef44553ce2437c
Author: Derek Schrock <dereks at lifeofadishwasher.com>
Date:   Tue May 12 19:15:05 2015 -0400

    Fix "use of localtime without parentheses" warning

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index ef618e6..0aa835e 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -523,7 +523,7 @@ sub SendEmail {
         }
         my $content = $args{Entity}->stringify;
         $content =~ s/^(>*From )/>$1/mg;
-        print $fh "From $ENV{USER}\@localhost  ".localtime."\n";
+        print $fh "From $ENV{USER}\@localhost  ".localtime()."\n";
         print $fh $content, "\n";
         close $fh;
     } else {

-----------------------------------------------------------------------


More information about the rt-commit mailing list