Add date to comments
Currently we have an acl script that adds the username to any comments that are inserted. There has been a request to add the date. Is there a way to only have the date? Under functions there is no date only option., only a time_date function.
function insert_tag_after_callback(doc, tagname, oid, op) {
if (op==1) { return 0; }
if (tagname == "_comment") {
goto_oid(oid);
insert("[" . time_date() . ", " . username() . "]: ");
}
}
doc_add_callback(0, "insert_tag_after", "insert_tag_after_callback");
Thanks
Bryon

