"localtime" without parentheses is ambiguous present in version 4.2.12

Hi all,

We upgraded RT from 4.2.8 to 4.2.12

The following warning appeared

Warning: Use of “localtime” without parentheses is ambiguous at /opt/rt4/sbin/…/lib/RT/Interface/Email.pm line 526.

This link below provided a solution for a user running version 4.2.11
http://requesttracker.8502.n7.nabble.com/RT-4-2-Use-of-quot-localtime-quot-without-parentheses-is-ambiguous-td60291.html#a60452

vi RT/Interface/Email.pm +526
print $fh “From $ENV{USER}@localhost “.localtime.”\n”;

added parentheses after localtime
print $fh “From $ENV{USER}@localhost “.localtime*()*.”\n”;

This seems to have stopped the warning messages.

Is this a bug that is in 4.2.11 and still in version 4.2.12?

Regards

Hi,On Thu, Sep 17, 2015 at 4:05 PM, Sunny ssn@ebi.ac.uk wrote:

We upgraded RT from 4.2.8 to 4.2.12

The following warning appeared

Warning: Use of “localtime” without parentheses is ambiguous at
/opt/rt4/sbin/…/lib/RT/Interface/Email.pm line 526.

This link below provided a solution for a user running version 4.2.11
http://requesttracker.8502.n7.nabble.com/RT-4-2-Use-of-quot-localtime-quot-without-parentheses-is-ambiguous-td60291.html#a60452

vi RT/Interface/Email.pm +526
print $fh “From $ENV{USER}@localhost “.localtime.”\n”;

added parentheses after localtime
print $fh “From $ENV{USER}@localhost “.localtime().”\n”;

This seems to have stopped the warning messages.

Is this a bug that is in 4.2.11 and still in version 4.2.12?

The error is indeed part of in 4.2.11 and 4.2.12; it’s fixed in 4.2-trunk though

Michiel