WIP: Cumulative update (#685)

* Use lang variables instead of strings

* [Cache/Datastore] Use switch constructions

* Removed old-style debug from SQL wrapper

* Removed useless functions

* Use bb_date instead of native function
This commit is contained in:
Roman Kelesidis 2023-04-18 23:08:57 +07:00 committed by GitHub
commit 4ff334bb45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 103 deletions

View file

@ -71,7 +71,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
$birthday_today_list = $birthday_week_list = array();
foreach ($sql as $row) {
$user_birthday = date('md', strtotime($row['user_birthday']));
$user_birthday = bb_date(strtotime($row['user_birthday']), 'md', false);
if ($user_birthday > $date_today && $user_birthday <= $date_forward) {
// user are having birthday within the next days