[rt-users] "localtime" without parentheses is ambiguous present in version 4.2.12

Michiel Beijen michiel.beijen at gmail.com
Thu Sep 17 10:27:16 EDT 2015


Hi,

On Thu, Sep 17, 2015 at 4:05 PM, Sunny <ssn at 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

https://github.com/bestpractical/rt/commit/0cf3eb779a8ce2a26771bf9378ef44553ce2437c

--
Michiel



More information about the rt-users mailing list