Joachim wrote: > i have a skript, which ones a day puts content in the Wiki > (with "trac-admin /tracpath wiki import wikipagename filename"). > > When i run this Skript in the terminal, all is ok, when the cron runs > it, the time is wrong. I look in the database and found this: > ---------- > sqlite3 trac.db "select version,time,author,ipnr from wiki where name > like '%blabla%';" > > 1|1370964133344701|trac|127.0.0.1 > 2|1370964216695323|trac|127.0.0.1 > 3|1371005282|trac|127.0.0.1 > ---------- > The first and second entrys are ok, the last time is wrong. Maybe the > timestap ist cut of after ten character? But why? I'm no programmer, so > at this point i'm stuck.
This looks very much like two different versions of Trac are installed on your machine. When you run from the terminal, 0.12.3 is used, and you get microsecond timestamps. When running from cron, 0.11.x is used, and you get second timestamps. Please make sure you have no remains of the 0.11.x installation. Inspect the PATH in your cron, and find which trac-admin binary is found on that path. Also, look in your Python's site-packages and remove all traces of 0.11.x. -- Remy
signature.asc
Description: OpenPGP digital signature
