[rt-users] Date formatting...
Jesse Vincent
jesse at bestpractical.com
Thu Nov 29 00:03:51 EST 2001
Yes. changing sub ISO will break RT _badly_. I suspect that what you want
to look at is sub AsString.
-j
On Wed, Nov 28, 2001 at 10:59:05PM -0600, Jay Kramer wrote:
>
> I looked there, but all I found was ISO that had any formatting at all.. If
> I change that function, will it break anything?
>
> $date = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $year,$mon,$mday,
> $hour,$min,$sec);
>
> I am guessing I can just change this around and add in the code to subtract
> 12 if hour is over 12 and make it 12 if it is 0 ;)
>
> Jay
> (again, if I do this, will it break any other date handling in RT.. If this
> won't then I am going to do it in such a way as to make it
> configurable in the config file and send in a patch against it.. A lot of
> people want this)
>
> > Take a look at RT::Date, there should be a HumanReadable method
> > or something like that...
> >
> > -j
> >
> > On Wed, Nov 28, 2001 at 11:18:14AM -0600, Jay Kramer wrote:
> > > Okay, the date formatting in RT, can I change it to not be military
> times, and show normal times like 5:30PM and 4:00AM instead of 17:30 and
> 4:00.. ;) Its throwing the simpleminded out of wack :)
> > >
> > > jay
> > >
> >
> > --
> > http://www.bestpractical.com/products/rt -- Trouble Ticketing. Free.
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
>
>
--
http://www.bestpractical.com/products/rt -- Trouble Ticketing. Free.
More information about the rt-users
mailing list