Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

Short Date Format

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


stephen.a.cochran.lists at cahir

Apr 13, 2008, 9:53 PM

Post #1 of 1 (100 views)
Permalink
Short Date Format

To enable due dates entry in the SelfService interface and while viewing the
basics of a ticket, I've made a number of modifications. One is to the
Date.pm file itself to enable a "Short" version. The diff is below:

diff Date.pm.dist Date.pm
404a405,422
> # {{{ sub AsShortString
>
> =head2 sub AsShortString
>
> Returns the object\'s time as a string with only the date, no time.
>
> =cut
>
> sub AsShortString {
> my $self = shift;
> return ($self->loc("Not set")) if ($self->Unix <= 0);
>
> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($self->Unix);
>
> return $self->loc("[_1] [_2] [_3]", $self->GetWeekday($wday),
$self->GetMonth($mon), ($year+1900));
> }
> # }}}
>

Is there a process for submitting patches?

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.