diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 8aa9f413a..b95b206f7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -44,6 +44,7 @@ enabled by default; add an instance of it to an appropriate workflow if you want it to run. - fix: new profile fields and new users not handling profile defaults right + - fix: subscription dates - The Events Calendar is now the new Calendar with some fun new features. All your existing Events Calendars will be migrated automatically. - Major change: password recovery is now based on profile fields rather than diff --git a/lib/WebGUI/Subscription.pm b/lib/WebGUI/Subscription.pm index 77ce4e49d..9fefd6c80 100644 --- a/lib/WebGUI/Subscription.pm +++ b/lib/WebGUI/Subscription.pm @@ -59,7 +59,7 @@ sub apply { $groupId = $self->{_properties}{subscriptionGroup}; my $group = WebGUI::Group->new($self->session,$groupId); # Make user part of the right group - $group->addUsers([$userId], $self->session->datetime->time + $self->_getDuration($self->{_properties}{duration})); + $group->addUsers([$userId], $self->_getDuration($self->{_properties}{duration})); # Add karma WebGUI::User->new($self->session,$userId)->karma($self->{_properties}{karma}, 'Subscription', 'Added for purchasing subscription '.$self->{_properties}{name});