Recent comments
- That is a great news.
19 hours 40 min ago - great
3 days 3 hours ago - Hey, your blog is great. I
3 days 3 hours ago - great
3 days 3 hours ago - Cool Concept!
3 days 23 hours ago - Flashback
4 days 2 hours ago - xbox repairing
4 days 7 hours ago - xbox repairing
4 days 7 hours ago - xbox repairing
4 days 7 hours ago - Good and Bad News for Bike Advocates....
4 days 13 hours ago






definite weaknesses
There are definitely problems with this script like the ones you mentioned.
For performance reasons a lot of things in Drupal are denormalized (e.g. count of comments on a node, time of last comment on a node) and doing "fixes" like this don't take those into account. It's also possible for those values to get corrupted when you delete a user. I contributed a patch to 4.7 that fixes the "forum topic disappears when a user who makes a comment is deleted" which "fixes" the problem but doesn't solve the fact that there is still a comment recorded on the node with a false time.
For the "multiple comments on a node all get the same time" that wasn't a problem here because of the relatively small number of nodes with multiple comments (e.g. 1 in my case) but if that were a problem you wanted to solve there are ways around that either using multiple queries or a php script to set the time at successively longer intervals for subsequent comments.