Add Danbooru Winter Sale.

This commit is contained in:
evazion
2020-12-25 05:46:04 -06:00
parent ae49ed2b1a
commit fd18291382
11 changed files with 50 additions and 2 deletions

View File

@@ -494,6 +494,12 @@ module Danbooru
def redis_url
"redis://localhost:6379"
end
def is_promotion?
Time.use_zone("UTC") do
Time.zone.now < Time.zone.parse("2021-01-01")
end
end
end
EnvironmentConfiguration = Struct.new(:config) do