Skip to content

Commit f11989f

Browse files
committed
Switch to post_time for date, more reliable, future proof
1 parent c3fcf79 commit f11989f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

textreparser/plugins/clean_old_ideas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function get_records_by_range_query($min_id, $max_id)
8383
ON i.topic_id = p.topic_id
8484
INNER JOIN ' . $this->topics_table . ' t
8585
ON p.' . $columns['id'] . ' = t.topic_first_post_id
86-
WHERE i.idea_date < ' . strtotime('September 1, 2017') . '
86+
WHERE p.post_time < ' . strtotime('September 1, 2017') . '
8787
AND i.idea_id BETWEEN ' . $min_id . ' AND ' . $max_id;
8888
}
8989

0 commit comments

Comments
 (0)