Hello all,
I am new to Trac and am looking into migrating an old in-house task tracking system to Trac and had a couple questions.
1. Most of the existing tickets and doc being migrated are rst and we will continue that practice so not requiring every entry to be wrapped in a "{{{#!rst" block would be nice. Is it possible make the default wiki formatting engine the reStructuredText one rather than Trac's native one?
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?
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:
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