Add Danbooru Winter Sale.

* 25% off Gold and Platinum accounts.
* Free 6 tag searches for Member-level users.
* Runs from midnight Dec. 25th to 28th (UTC time).
This commit is contained in:
evazion
2019-12-24 13:02:05 -06:00
parent ef2eb9d0f5
commit 963f1f7991
6 changed files with 56 additions and 5 deletions

View File

@@ -638,6 +638,12 @@ module Danbooru
def redis_url
"redis://localhost:6379"
end
def is_promotion?
Time.use_zone("UTC") do
Time.zone.now.in?(Time.zone.parse("2019-12-25")..Time.zone.parse("2019-12-28"))
end
end
end
class EnvironmentConfiguration