RT 4.2 - Use of "localtime" without parentheses is ambiguous

Hello all.

Getting the following warning message (RT 4.2 + RTIR 3.2):

[20776] [Thu Jul 9 18:11:03 2015] [warning]: Warning: Use of “localtime”
without parentheses is ambiguous at
/opt/rt4/sbin/…/lib/RT/Interface/Email.pm line 526.
(/opt/rt4/sbin/…/lib/RT/Interface/Email.pm:526)

Thank you :slight_smile:

View this message in context: http://requesttracker.8502.n7.nabble.com/RT-4-2-Use-of-localtime-without-parentheses-is-ambiguous-tp60291.html

Received an answer in private, thought it would be cool to share:

I was getting the same warning as the following rt-devel post which I
found online - though I’m not subscribed to so I’m posting my fix here
instead.

[rt-devel] RT 4.2 - Use of "localtime" without parentheses is ambiguous

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

Correction is to edit Email.pm and where it has “localtime”, use
“localtime()” instead. Cursory search online for perl localtime shows
examples with correct syntax.

Note: Am working in RT 4.2.11

PS: I don’t know what went through my mind to use (localtime) instead of
localtime(), lol.

View this message in context: http://requesttracker.8502.n7.nabble.com/RT-4-2-Use-of-localtime-without-parentheses-is-ambiguous-tp60291p60452.html

I was getting the same warning as the following rt-devel post which I found online - though I’m not subscribed to so I’m posting my fix here instead.

http://lists.bestpractical.com/pipermail/rt-devel/2015-July/012362.html
[warning]: Warning: Use of “localtime”
without parentheses is ambiguous at
/opt/rt4/sbin/…/lib/RT/Interface/Email.pm line 526.

Correction is to edit Email.pm and where it has “localtime”, use “localtime()” instead. Cursory search online for perl localtime shows examples with correct syntax.

Note: Am working in RT 4.2.11

Thanks,
Dominic