Birthdat Format does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iascauk
    Member
    • Dec 2002
    • 50

    Birthdat Format does not work

    I have the Admin cp birthdat format set to jS F Y, but on the forum in profile all dates come up as 1st January 1970...

    Any ideas???
  • Cary
    Senior Member
    • Apr 2002
    • 4433
    • 3.6.x

    #2
    If all of the dates come up as Jan 1, 1970 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

    • iascauk
      Member
      • Dec 2002
      • 50

      #3
      Excellent, spot on.

      worked a treat, Thanks

      Comment

      Related Topics

      Collapse

      Working...