- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
Right now we assume that 1 month is 30 days.
We should make this an actual month.
We also need to account for the fact that strtotime("+1 month") can overreach (Jan 31st + 1 month should be Feb 28th).
Luckily there's Interval, which has the field type that we need, and is really small (also already used by Commerce Recurring). It also allows us to configure the overreach behavior (whether Jan 1st + 1 month should be reduced to Feb 28th or go into March).
So we need to add an interval dependency, hoo_requirements() check, a commerce_license_duration_interval field, and an update hook that populates commerce_license_duration_interval based on commerce_license_duration (in a batch), then deletes the old commerce_license_duration field.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.