$showYear = $this->birthdayShowYear || WCF::getSession()->getPermission('admin.general.canViewPrivateUserOptions');
- $d = new \DateTimeImmutable();
- $d->setTimezone(WCF::getUser()->getTimeZone());
- $d->setDate($birthdayYear, $month, $day);
+ $d = new \DateTimeImmutable($this->birthday, WCF::getUser()->getTimeZone());
$dateFormat = (($showYear && $birthdayYear) ? WCF::getLanguage()->get(DateUtil::DATE_FORMAT) : \str_replace(
'Y',
'',
return false;
}
- $dateTime = new \DateTimeImmutable();
- $dateTime->setTimezone(WCF::getUser()->getTimeZone());
+ $dateTime = new \DateTimeImmutable('now', WCF::getUser()->getTimeZone());
$userIDs = UserBirthdayCache::getInstance()->getBirthdays($dateTime->format('n'), $dateTime->format('j'));