Use PHP-intl instead of strftime.

This removes the requirement of having locales installed on the server
for all languages.
Also strftime is depreciated in PHP 8.1.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-03-22 14:48:02 +01:00
parent 83201ece9c
commit 70830c514d
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
13 changed files with 67 additions and 27 deletions

View file

@ -43,6 +43,12 @@ $poll = null;
$message = null;
$editingVoteId = 0;
/* Globals */
/* ------- */
global $smarty;
global $connect;
global $config;
/* Services */
/*----------*/
@ -468,6 +474,5 @@ $smarty->assign('resultPubliclyVisible', true);
$smarty->assign('editedVoteUniqueId', '');
$smarty->assign('default_to_marldown_editor', $config['markdown_editor_by_default']);
$smarty->assign('selectedNewVotes', $selectedNewVotes);
header("X-Robots-Tag: noindex, nofollow, nosnippet, noarchive");
$smarty->display('studs.tpl');