<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>Wondering if RT 
has this functionality and I missed it somewhere. If it does not, it may be 
useful for some that want more control over the formatting of the date. Then 
from templates, or where ever you want to print the date, can use something like 
</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2>$Ticket->CreatedObj->DateFormat(TEMPLATE)</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>passing it the 
format string you want the date output in TEMPLATE. Create the string using any 
of the allowable format parameters from Date::Format, there is quite a 
few.</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV></FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>eg. In a template 
can have something like:  </FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>On 
{$Ticket->CreatedObj->DateFormat("%B %e, %Y")} your machine was detected 
to have unauthorized software.</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>would result 
in: </FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>On July 16, 
2004 your machine was detected to have unauthorized 
software.</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>Perhaps this could 
be added to base RT if not there in 3.2.1?</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>Created the 
file:    
 /opt/rt3/local/lib/Date_Local.pm</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>use 
Date::Format;</FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>sub DateFormat 
{<BR>    my $self = shift;<BR>    my $template = 
shift;<BR>    return ($self->loc("Not set")) if 
($self->Unix <= 0);</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial size=2>    
return (time2str($template,$self->Unix));<BR>}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=492212015-16072004><FONT face=Arial 
size=2>Dave</DIV></FONT></SPAN></BODY></HTML>

<P>------------------------------------------------------------<br>
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. <br>
<br>
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.<br>
<br>
============================================================<br>
</P>