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

jotenko joao-p-seara at telecom.pt
Wed Aug 12 11:13:26 EDT 2015

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.
> 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

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
Sent from the Request Tracker - Dev mailing list archive at Nabble.com.

More information about the rt-devel mailing list