[rt-users] Script to build timeworked report based on CustomField

Rick Russell rickr at rice.edu
Wed Apr 5 16:32:12 EDT 2006



Jason Fenner wrote:

> use POSIX(strftime);

Be careful! RT uses a default PERL package called CTime that includes
its own versions of strftime, localtime, etc.

In my own scrips, I found that even if I specified

  use POSIX;

up front, RT would occasionally pull the functions from CTime instead of
POSIX, and produce garbage as a result. localtime() seems to work
differently between the two packages.

For safety, I suggest using explicit function calls like

  POSIX::strftime(argument)

and

  POSIX::localtime()

Rick R.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rickr.vcf
Type: text/x-vcard
Size: 182 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060405/efe5bbd2/attachment.vcf>


More information about the rt-users mailing list