Reproduce
1. Assign a uc_roles role expiration date for January 18, 2038.
2. Trigger role renewal.

Symptom
Instead of resetting the expiration date to the appropriate date in the future, it gets reset to 0 ("zero").
Once the expiry is set to a date in the past, the role will expire immediately on the next cron run.

Solution
There are already at least a couple issues dealing with the Year 2038 problem.
Seeing as how UC 6.x will likely never be updated to benefit from these patches, an interim solution is to not try and set the expiry to a value greater than 2147483647.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Status: Active » Needs review
FileSize
853 bytes

Re-uploaded the patch without the -D6 suffix. The suffix tells the D6 testbot to ignore your patch.

Status: Needs review » Needs work

The last submitted patch, uc_roles-2038_bug.patch, failed testing.

Island Usurper’s picture

FileSize
980 bytes

The testbot also requires patches that apply with the -p1 flag.

Island Usurper’s picture

Status: Needs work » Needs review

D'oh, status.

TR’s picture

Version: 6.x-2.x-dev » 8.x-4.x-dev
Category: Bug report » Task
Issue summary: View changes
Status: Needs review » Needs work