RE: [Trac] ISO date format in revision log possible? (Trac 0.11.7)

2012-01-20 Thread W. Martin Borgert

Quoting Cooke, Mark mark.co...@siemens.com:

Have a look at:- http://trac.edgewall.org/ticket/5813 (for tickets)


Many thanks, this is indeed a similar issue.

This ended as a `wontfix` but has a snippet of template  
customisation that might work with the revision log (just guessing)...


Unfortunately, it's not possible to handle this with a template
customisation, if I understand the code correctly. One has to
change timeline/web_ui.py instead:

--- web_ui.py.orig  2012-01-20 13:29:33.0 +0100
+++ web_ui.py   2012-01-20 13:25:14.0 +0100
@@ -241,7 +241,7 @@
 if data:
 def dateinfo(date):
 return self.get_timeline_link(req, date,
-  pretty_timedelta(date),
+  format_datetime(date),
   precision='second')
 data['dateinfo'] = dateinfo
 return template, data, content_type

The good news is, that the all the absolute vs relative date
and ISO vs whatever format wars are over with Trac 0.13. The
ticket you mentioned contains a link to:

http://trac.edgewall.org/demo-0.13/prefs/datetime

Bad news for me: I'm in the process of switching to 0.12 soon.

Cheers

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] ISO date format in revision log possible? (Trac 0.11.7)

2012-01-19 Thread Cooke, Mark
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of W. Martin Borgert
 Sent: 19 January 2012 19:01
 Subject: [Trac] ISO date format in revision log possible? 
 (Trac 0.11.7)
 
 Hi,
 
 in the revision log of a file in an SVN repository, I see
 the Date values in a prosaic form, e.g. 3 days, 2 weeks
 etc. This is very inconvenient IMHO. I would like to see ISO
 dates (-MM-DD). Currently only hovering over one date
 shows an ISO date, but I don't have enough mice to hover over
 all dates at once. (How) can I change this in Trac 0.11.7?
 If it's not possible with 0.11.7, is it solved in 0.12.2/3?
 
 TIA!

Have a look at:- http://trac.edgewall.org/ticket/5813 (for tickets)

This ended as a `wontfix` but has a snippet of template customisation that 
might work with the revision log (just guessing)...

~ mark c

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.