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.
This commit is contained in:
Konrad Borowski 2014-08-12 09:23:57 +02:00
parent 85570ddc77
commit 2c3bdf48d1
No known key found for this signature in database
GPG Key ID: BD0728B4A67A3DF0

View File

@ -12,7 +12,7 @@ module TopicQuerySQL
end end
def highest_date def highest_date
"3000-01-01" "infinity"
end end
def order_by_category_sql(dir) def order_by_category_sql(dir)