I have not been able to change the date/time format in Turnkey Trac from the default US format. The global locale in Ubuntu is set to sv_SE.UTF-8 but this seems to have no effect in Apache and Trac. The TK setup is a little different from my previous installations of Apache and Trac so I am confused about where to add a SetEnv variable (if that is the way to do it). Any help would be appreciated.

/Tom

Replies (2)

apache config file should be in /etc

Reply 1

Have a look at /etc/apache2/apache2.conf to be precise.

The Trac FAQ should help with the details of what needs changing.

Adding this line in trac.wsgi

Reply 2

Adding this line in trac.wsgi solved the problem:

environ['trac.locale'] = 'sv_SE.UTF-8'

Thanks for pointing me in the right direction! :)

/Tom