vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Stupid Birthday error... (https://vborg.vbsupport.ru/showthread.php?t=53325)

Chris M 05-24-2003 11:34 AM

Stupid Birthday error...
 
There is a birthday error at a forum I am a Tech Admin at, which has baffled me entirely...

One of the users, has a Birthday of 1st July 1960...

When I look in the Admin CP, or PhpMyAdmin, it says 7-1-1960 (american format m-d-y), which is correct...

However, when I view his profile, it says "31st December 1969"...

Do you know why this is doing this, or how I can correct it?:)

Satan

Dean C 05-24-2003 11:43 AM

I think this was a bug fixed in later versions of vb. upgrade to the latest version :)

- miSt

Chris M 05-24-2003 11:46 AM

Ok a bug fix;)

You wouldn't happen to know what the bug fix is, rather than having to re-install lots of hacks and templates that vB deletes?:)

Edit: Never mind, I think I found what to fix;):)

Satan

Boofo 05-24-2003 12:23 PM

Quote:

Today at 07:46 AM hellsatan said this in Post #3
Ok a bug fix;)

You wouldn't happen to know what the bug fix is, rather than having to re-install lots of hacks and templates that vB deletes?:)

Edit: Never mind, I think I found what to fix;):)

Satan

It's in member.php and you might want to fix it in the register.php, too. :)

Chris M 05-24-2003 04:23 PM

Thanks Boofo:)

Satan

cirisme 05-24-2003 05:29 PM

What was the fix?

I know it's that epoch seconds are of range, but what do I change to fix it? :)

bgray 06-21-2003 03:10 PM

i have this problem too. Could someone explain how to fix it?

insanctus 06-25-2003 05:58 PM

I need the fix as well. I do not feel like going to 2.3 and readoing hours of hacking :)

Boofo 06-25-2003 06:05 PM

Quote:

Today at 01:58 PM insanctus said this in Post #8
I need the fix as well. I do not feel like going to 2.3 and readoing hours of hacking :)
In member.php, change this:

PHP Code:

$birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0])); 

to this:

PHP Code:

$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993)).', '.$bday[0]; 



All times are GMT. The time now is 03:26 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.01843 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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