Upgrade Ruby to 3.1.2.
Also fix a call to `Time.utc` that fails in Ruby 3.1.2 (can't pass a string to Time.utc).
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<% if Danbooru.config.is_promotion? %>
|
||||
<p>
|
||||
<%= tag.img src: "/images/padoru.gif", width: 24, height: 24 %>
|
||||
<b>Danbooru Winter Sale! Gold and Platinum upgrades are 25% off. Sale ends <%= time_ago_in_words_tagged(Time.utc("2022-01-01")) %>.</b>
|
||||
<b>Danbooru Winter Sale! Gold and Platinum upgrades are 25% off. Sale ends <%= time_ago_in_words_tagged(Danbooru.config.winter_sale_end_date) %>.</b>
|
||||
<%= tag.img src: "/images/padoru.gif", width: 24, height: 24 %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user