lib/soapy_cake/helper.rb in soapy_cake-1.25.1 vs lib/soapy_cake/helper.rb in soapy_cake-1.25.2
- old
+ new
@@ -52,9 +52,9 @@
# Some API calls require expiration dates.
# The default is to not expire campaigns/offers/etc., so we set this to far in the future.
# It cannot be *that* far in the future though because it causes a datetime overflow
# in the steam powered rusty black box they call a database server.
def future_expiration_date
- Date.today + (365 * 30)
+ Date.current + (365 * 30)
end
end
end