Announcement

Collapse
No announcement yet.

Date of Birth Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Date of Birth Bug

    Hi all,

    I am currently having problems when people enter a birth date < = 1969 the birth date is alws displayed December 31, 1969.

    Anyone heard of that or know why it may be happening?
    khackney
    Board Admin

    http://www.phpfixation.com/photopost...1admin-sig.gif
    My Site

  • #2
    Open up your member.php file

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

    Change it to:
    $birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2])). ", $bday[0]";

    This usually happens when your server doesn't support negative timestamps (times before Jan 1, 1970)

    Comment


    • #3
      Originally posted by Cary
      Open up your member.php file

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

      Change it to:
      $birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2])). ", $bday[0]";

      This usually happens when your server doesn't support negative timestamps (times before Jan 1, 1970)
      Thanks a ton. Works like a charm now!
      khackney
      Board Admin

      http://www.phpfixation.com/photopost...1admin-sig.gif
      My Site

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X