clarify birthday doco, Facebook really screwed this one up.

This commit is contained in:
Mike Macgirvin 2010-09-27 00:46:29 -07:00
parent 627c65b49f
commit 4d8e8de0bf
1 changed files with 5 additions and 4 deletions

View File

@ -171,11 +171,12 @@ function relative_date($posted_date) {
// Returns age in years, given a date of birth, // Returns age in years, given a date of birth,
// the timezone of the person whose date of birth is provided, // the timezone of the person whose date of birth is provided,
// and the timezone of the person viewing the result. // and the timezone of the person viewing the result.
// Why? Bear with me. Let's say I live in Mittagong, Australia. My birthday // Why? Bear with me. Let's say I live in Mittagong, Australia, and my
// is on New Year's. You live in San Bruno, California. // birthday is on New Year's. You live in San Bruno, California.
// When exactly are you going to see my age increase? // When exactly are you going to see my age increase?
// A: 5:00 AM Dec 31. That's when I start celebrating, and when // A: 5:00 AM Dec 31 San Bruno time. That's precisely when I start
// my birthday arrives in your timezone. // celebrating and become a year older. If you wish me happy birthday
// on January 1 (San Bruno time), you'll be a day late.
function age($dob,$owner_tz = '',$viewer_tz = '') { function age($dob,$owner_tz = '',$viewer_tz = '') {
if(! intval($dob)) if(! intval($dob))