Setting dateTime when inserting and updating threads and comments.