Fixed changelog date fetching.
This commit is contained in:
parent
5b2a49add7
commit
ad3d836ae7
3 changed files with 3 additions and 2 deletions
|
@ -60,6 +60,7 @@ $featuredChangelog = $db->query('
|
|||
WHERE DATE(c.`change_created`) >= (
|
||||
SELECT DATE(`change_created`)
|
||||
FROM `msz_changelog_changes`
|
||||
GROUP BY DATE(`change_created`)
|
||||
ORDER BY `change_created` DESC
|
||||
LIMIT 2, 1
|
||||
)
|
||||
|
|
|
@ -143,7 +143,7 @@ final class Database
|
|||
|
||||
$options[PDO::MYSQL_ATTR_INIT_COMMAND] = "
|
||||
SET SESSION
|
||||
sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION',
|
||||
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION',
|
||||
time_zone = '+00:00';
|
||||
";
|
||||
break;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="container__content">
|
||||
We have <span class="index__stats__emphasis">{{ users_count|number_format }}</span> users and
|
||||
the last person to join was <a href="/profile.php?u={{ last_user.user_id }}" class="index__stats__emphasis index__stats__link" style="{{ last_user.user_colour|html_colour }}">{{ last_user.username }}</a>,
|
||||
<time datetime="{{ last_user.created_at|date('c') }}" datetime="{{ last_user.created_at|date('r') }}">{{ last_user.created_at|time_diff }}</time>!
|
||||
<time datetime="{{ last_user.created_at|date('c') }}" title="{{ last_user.created_at|date('r') }}">{{ last_user.created_at|time_diff }}</time>!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue