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
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/cbb71b70-eaf7-43ff-a83c-38201612d8d9%40osypkamed.com.