Date/Time Output Format

Hi,

How does one add an additional option to the drop-down for “Date
format” under the “Locale” fieldset on individual user’s “Settings”
pages?

I’d like to add “mm/dd/yyyy hh:ii A” as an option - my users don’t
need/want seconds to be displayed there, but would like am/pm to show.

I looked at $DateTimeFormat but I don’t see how that would enable me
to let users still have the option of other formats. All I want to do
is add a new option, not take away the old ones.

Tim Gustafson
tjg@ucsc.edu
831-459-5354
Baskin Engineering, Room 313A

How does one add an additional option to the drop-down for “Date
format” under the “Locale” fieldset on individual user’s “Settings”
pages?

I’d like to add “mm/dd/yyyy hh:ii A” as an option - my users don’t
need/want seconds to be displayed there, but would like am/pm to show.

I looked at $DateTimeFormat but I don’t see how that would enable me
to let users still have the option of other formats. All I want to do
is add a new option, not take away the old ones.

Setting $DateTimeFormat controls the default your users get, there are
some examples of defining ‘custom’ ones, such as ISO without seconds,
or RFC2822 without seconds. If there’s an option already which is
‘close’ to what you want, you might be able to do that.

Otherwise, if you need something wholly custom, it’s a pretty simple
plugin to add to the list, I’ve written one or two:

you can see it’s a tiny amount of perl code at the bottom of the file,
most of the text is documentation:
http://api.metacpan.org/source/FALCONE/RT-Extension-DateTAI64-0.01/lib/RT/Extension/DateTAI64.pm

-kevin