On 5/21/24 05:36, Clemens Feige wrote:

RjOllos wrote on 21.05.2024 at 00:12:

On Monday, May 13, 2024 at 1:57:07 PM UTC-7 s mcgraw wrote:
[snip]

    2. I would like dates/times to display in absolute format but in an ISO-like format with the 
"T" replaced with a space and with seconds and timezone left off: "2024-02-01 
13:26".  Is this possible?


There are some configuration options:
https://trac.edgewall.org/wiki/TracIni#trac-default_date_format-option

If you want to remove the "T" and other mods, maybe some JavaScript 
customization. Or you can write likely write a plugin that hooks into the datetime 
formatting methods.

I have the same wish as Stuart. For my users the full ISO-format the date is 
too long and hard to read. They would be happy with just YYYY-MM-DD, i.e. 
omitting hours, minutes, seconds and time-zone. I would appreciate if somebody 
can offer a ready solution.

I am not a TRAC developer but I searched in the TRAC 1.4 source code. In file "util/datefmt.py", method 
"_format_datetime()" calls method "_format_datetime_iso8601" with a "long" format. If this is 
changed to "short" format, then the seconds and timezone are omitted.

JavaScript has been proposed, too ...

Clemens

For now I ended up just modifying the ISO formatted output of that function.  I 
agree that the default ISO format is too hard to read and too verbose (I 
already know what timezone I'm in, don't need it mentioned in every timestamp.)

As for Javascript, that will be a bit of effort given my JS knowledge is at the 
Google search-copy-paste level. :-)

-- Stuart

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/cf2cbbcc-7807-4bf0-acf7-fe02f8e27dbd%40gmail.com.

Reply via email to