I have a file that contains a properly structured input file for scriptindex, I think. I includes lines like: date=1125708690 The index file looks like: title : index body : unhtml index teaser : index field=sample date : date=unix field=modtime node : boolean=Q unique=Q field=url When I do a search using omega, the date comes back as a few minutes after the epoch. Jan 1 1970 00:33 or some such. When I go to god mode, I get the date as: modtime=2005 I also modified the query template to print out the modtime and see the same value. I know something's wrong, but what? THanks, Jim.
On Fri, Nov 03, 2006 at 12:33:13PM -0500, Jim Lynch wrote:> I know something's wrong, but what?Looking at the code, the "date" action modifies the value it operates on, which is a bug. I'll fix that, but there's a very easy workaround - just rearrange the actions so that date is last: date : field=modtime date=unix Then it doesn't matter than date modifies the value. Cheers, Olly