vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Subscription Length maxed out to year 2038 (https://vborg.vbsupport.ru/showthread.php?t=324204)

DCD.RB 01-14-2017 07:57 PM

Subscription Length maxed out to year 2038
 
Hello,
On my board, years have options to subscribe up 100 years. 1000 & 9000 are just jokes.

But I've noticed anyone who subscribes for 100 years, the system automatically sets them to expire by 2038. If I manually edit the number, it changes to 2106. Which is fine, more than enough.

But why would the automatic subscription max out at 2038 and require a manual edit? And how could I resolve it?

Thank you

Dave 01-14-2017 08:58 PM

<a href="https://en.wikipedia.org/wiki/Year_2038_problem" target="_blank">https://en.wikipedia.org/wiki/Year_2038_problem</a>

That will explain it all. You might be able to "fix" it by changing it to a BIGINT in the database.

DCD.RB 01-14-2017 09:04 PM

Sorry, what do I need to change exactly?

Paul M 01-14-2017 10:04 PM

Messing with your database for a joke is probably not a good idea. Just limit your subscriptions to 20 years.

DCD.RB 01-14-2017 10:40 PM

100 years isn't a joke. The 1000 & 9000 are.

It's suppose to be the "life time" option. And I noted the 100 causes the issue. In fact no one has subscribed for 1000 or 9000.

Paul M 01-15-2017 12:21 PM

Then I suggest you just use 20 years for lifetime (or more specifially, set them to 31 Dec 2037).

If you are still around in 15+ or so years, running vB4, you can start thinking about a long term fix.


All times are GMT. The time now is 10:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00916 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete