*** tdiary.rb.orig Sun Aug 8 01:45:13 2004 --- tdiary.rb Sun Aug 8 01:46:48 2004 *************** *** 1171,1176 **** --- 1171,1184 ---- end @author = @conf.multi_user ? @cgi.remote_user : nil + updatetime = Time::now + updatetimestr = updatetime.strftime(" \[%H:%M\]") + bodylines = @body.split(/\n/) + if bodylines.size > 0 then + bodylines[0] += updatetimestr + end + @body = bodylines.join("\n") + @io.transaction( @date ) do |diaries| @diaries = diaries @diary = self[@date] || @io.diary_factory( @date, @title, '', @conf.style )