Announcement

Collapse
No announcement yet.

Need to change an expirydate in subscriptionlog table

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need to change an expirydate in subscriptionlog table

    Click image for larger version

Name:	Screen Shot 2025-06-09 at 10.50.05 PM.png
Views:	622
Size:	63.4 KB
ID:	32531


    The circled expirydate is incorrect. This happened because the Paid Subscription for this level (8) was set to expire in 28 years when it was established. I didn't catch that, and a Paid Subscription at that level was purchased on May 30, 2025. For the user, it was set to expire on Sat Jan 02 2038 00:00:00 GMT+0000!

    I've corrected the expiration date via the Paid Subscription Manager, but now I need to fix the established record.

    The expirydate should be: 1780181535 (Sat May 30 2026 22:52:15 GMT+0000)

    Is this the correct mySQL query to accomplish this?

    UPDATE subscriptionlog
    SET expirydate = REPLACE(expirydate, '2146003200', '1780181535')
    WHERE subscriptionlogid = '88';
    The Linux Community has given me much. I do what I can to return the favor!

    #2
    Never mind! Just realized I can edit the Paid Subscription in AdminCP > User Manager. Doh!
    The Linux Community has given me much. I do what I can to return the favor!

    Comment


    • glennrocksvb
      commented
      Editing a comment
      Glad you figured it out.

    #3
    I would still like confirmation that the mySQL query I indicated is correct, and would have made the change too.
    The Linux Community has given me much. I do what I can to return the favor!

    Comment


    • glennrocksvb
      commented
      Editing a comment
      That looks correct but it's always preferred to do it in the UI if available. Running SQL script directly has risk and it's recommended to back up the database first before running a query.

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"