From 2c3bdf48d113c5e75acfc761b5176bdc135f42a3 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Tue, 12 Aug 2014 09:23:57 +0200 Subject: [PATCH] Use infinity instead of 3000-01-01 as max date. This fixes the y3k problem in Discourse that made topics with pins appear after threads updated in year 3000. --- lib/topic_query_sql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/topic_query_sql.rb b/lib/topic_query_sql.rb index 1256971c0..465737ce1 100644 --- a/lib/topic_query_sql.rb +++ b/lib/topic_query_sql.rb @@ -12,7 +12,7 @@ module TopicQuerySQL end def highest_date - "3000-01-01" + "infinity" end def order_by_category_sql(dir)