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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user