mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-17 11:54:22 +01:00
fix an issue: shift in subscription end date when over DST
This commit is contained in:
parent
8fca92b8ae
commit
978c44f55f
@ -179,7 +179,7 @@ class Subscription < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def set_expiration_date
|
||||
start_at = DateTime.current
|
||||
start_at = DateTime.current.in_time_zone
|
||||
self.expiration_date = start_at + plan.duration
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user