Add support for user defined locale and timezone in date/time prints, remove deprecated PHP strftime

This commit is contained in:
leosw
2022-02-01 21:13:27 +01:00
parent 3a497bbb64
commit 7ec61dbc63
7 changed files with 26 additions and 14 deletions

View File

@@ -27,7 +27,7 @@
<p class="article_legend">
<a class="article_link" href="<?=$config['rel_root_folder']?>blog/<?=$row->permalink?>">Lire la suite...</a>
<span class="article_infos">
Le <? echo strftime('%e %B %G',strtotime($row->update_date)) ?> par
Le <? echo datefmt_format($user->date_format,strtotime($row->update_date)) ?> par
<? if ($user->rankIsHigher("registered")) { ?>
<a href="<?=$config['rel_root_folder']?>user/p/<?=$row->author?>"><?=$row->author_name?></a>
<? }