Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   date and time, posted by David Pilgram on Wed Nov 13 13:36:48 2013 
    icon2.gif   Re: date and time, posted by Hal Proctor on Wed Nov 13 14:27:34 2013 
       icon2.gif   Re: date and time, posted by David Pilgram on Wed Nov 13 14:41:07 2013 
    icon2.gif   Re: date and time, posted by Andreas Luedeke on Thu Nov 14 11:19:12 2013 
       icon2.gif   Re: date and time, posted by David Pilgram on Fri Nov 15 13:43:18 2013 
Message ID: 67614     Entry time: Thu Nov 14 11:19:12 2013     In reply to: 67607     Reply to this: 67621
Icon: Reply  Author: Andreas Luedeke  Author Email: andreas.luedeke@psi.ch 
Category: Question  OS: Linux  ELOG Version: 2.9.2-2475 
Subject: Re: date and time 
> [13 Nov]
> As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read
> earlier quoted entries (what with word-wrapping of the browser).
> I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have 
> given at the top of this initial entry.
> 
> So this is what I put in the config file:
> 
> ....
> Time format = %a %d %b %y
> Date format = %d %b
> Prepend on reply = [$date] \n
> ...
> 
> The time is used in the string for the Thread display.
> 
> Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as
> 
> [Wed 13 Nov 13]
> 
> Now this is hardly a disaster, but any ideas why the date formatting is being ignored?

Hi David,
yes, a $date is substituted with the "Time format" in the function build_subst_list().
I guess that is a bug, but it could break many existing logbooks to change it.
I leave this to Stefan.

There is a simple solution for your problem: you can execute a shell command.

Prepend on reply = $shell(date '+[%d %b]') \n
Reply string =

That snipped will do exactly what you want :-) (of course you need to have the "-x" option to start elogd.)

Kind Regards
Andreas
ELOG V3.1.5-fe60aaf