Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1389692_y2k38.patch | 980 bytes | Island Usurper |
#1 | uc_roles-2038_bug.patch | 853 bytes | TR |
uc_roles-2038_bug-D6.patch | 853 bytes | AaronBauman | |
Comments
Comment #1
TR CreditAttribution: TR commentedRe-uploaded the patch without the -D6 suffix. The suffix tells the D6 testbot to ignore your patch.
Comment #3
Island Usurper CreditAttribution: Island Usurper commentedThe testbot also requires patches that apply with the -p1 flag.
Comment #4
Island Usurper CreditAttribution: Island Usurper commentedD'oh, status.
Comment #5
TR CreditAttribution: TR commented