*** tdiary.rb.orig Sun Dec 22 01:03:22 2002 --- tdiary.rb Sun Dec 22 11:01:00 2002 *************** *** 641,646 **** --- 641,654 ---- @author = @multi_user ? @cgi.remote_user : nil @hide = @cgi['hide'][0] ? true : false + 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") + transaction( @date, @diaries = {} ) do @diary = self[@date] || Diary::new( @date, @title, '' ) self << @diary.append( @body, @author )