Forum OpenACS Q&A: Response to datetime to "Nice Dates"

Collapse
Posted by MaineBob OConnor on

Thanks Michael,

My plan is to make this another choice in the Regular admin page:
/bboard/admin-home.tcl?topic=...
Where it says:

    Subject Line Suffix:
    (legal values are blank, "name", "email", "date", separated by spaces)

I've added a new item "kooldate" in the /tcl/bboard-defs.tcl file in the procedure called: "bboard_one_line_suffix". Also I added the whole procedure that Michael wrote just above this. I also discovered that every time I make a change to this file, I need to restart AOLServer. I'd be open to other ideas about where to put enhancements such as this or do I just have to make my own change list when a new OpenACS version arrives?

So now the error that is generated:

   
...Error: nsd.tcl: unable to convert date-time string "posting_time"
unable to convert date-time string "posting_time"
    while executing
"clock scan $pg_date"
    (procedure "pretty_pg_date" line 2)

#From the error log:
#Notice: The value of posting time is 2000-07-19 14:17:08-04

So it seems that clock scan doesn't work. I believe I'm using AOLServer 3.0. (Sysadmin Bill is away). How do I check for versions. Further---} Is there a quick way to check all versions and "subversions"!!! ?:

  • AOLServer
  • PostGresql
  • OpenACS

-Bob