PDA

View Full Version : [FIXED] Birthday format problem in 2.2.6 & 2.3.0



certify
Fri 14th Feb '03, 3:41pm
I wanted to change the birthday format from F j, Y
to jS F Y but it doesn't seems to work.

BTW: I have fix the Dec 31 1969 issue that was posted in the forum.

Steve Machol
Fri 14th Feb '03, 4:08pm
I just tried this out on my 2.3.0 test forum and it doesn't work there either. Moving to bugs.

Streicher
Fri 14th Feb '03, 5:38pm
My birthday format is d.m.Y but in the userprofile d.m,Y is shown since i updated to 2.3.0 yesterday.

nuno
Sat 15th Feb '03, 6:20am
My birthday format is d.m.Y but in the userprofile d.m,Y is shown since i updated to 2.3.0 yesterday.
Now that you mention it, no matter what i do, it stays steady at F j, Y format.

certify
Mon 24th Feb '03, 12:03pm
Is there a fix to this problem yet?

Scott MacVicar
Mon 24th Feb '03, 12:30pm
sorry i patched this a while back and forgot to mention it, its hard to fix this, basically you can change the arrangement of it but you will have to still use d m y due to the 1969 bug.

change

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

$cformat = str_replace('Y', $bday['0'], $calformat1);
$cformat = str_replace('y', substr($bday['0'], 2, 2), $cformat);
$birthday = @date($cformat,mktime(0,0,0,$bday[1],$bday[2],1993));

msimplay
Sun 16th Mar '03, 12:25pm
sorry i patched this a while back and forgot to mention it, its hard to fix this, basically you can change the arrangement of it but you will have to still use d m y due to the 1969 bug.

change
$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993)) . ', ' . $bday[0];to
$cformat = str_replace('Y', $bday['0'], $calformat1);
$cformat = str_replace('y', substr($bday['0'], 2, 2), $cformat);
$birthday = @date($cformat,mktime(0,0,0,$bday[1],$bday[2],1993));

this fix which file php file do i use it on and which version of 2.30 release candidate 3 ?

Steve Machol
Sun 16th Mar '03, 12:27pm
member.php

msimplay
Sun 16th Mar '03, 5:33pm
member.php

does this also apply to release candidate three ?

Steve Machol
Sun 16th Mar '03, 6:25pm
I had to check the code to make sure, but it looks like this is already patched in 2.3.0RC3.

msimplay
Sun 16th Mar '03, 9:09pm
I had to check the code to make sure, but it looks like this is already patched in 2.3.0RC3.

thanks :D

Alien
Sun 23rd Mar '03, 7:11pm
So I should also apply this fix in 2.2.6 eh?

Steve Machol
Sun 23rd Mar '03, 8:29pm
Actually I'm not sure if this fix is applicable to 2.2.6. You can always try it and see.