mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Story#129684535 add 1 extra day to extend valid_to
This commit is contained in:
parent
fb9d58cc37
commit
6c177bcbe4
1 changed files with 2 additions and 1 deletions
|
@ -545,7 +545,8 @@ class Domain < ActiveRecord::Base
|
|||
def set_validity_dates
|
||||
self.registered_at = Time.zone.now
|
||||
self.valid_from = Time.zone.now
|
||||
self.valid_to = valid_from + self.class.convert_period_to_time(period, period_unit)
|
||||
# we need + 1 day as this is more correct from juridical side
|
||||
self.valid_to = valid_from + self.class.convert_period_to_time(period, period_unit) + 1.day
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue