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

@@ -213,7 +213,7 @@ class User
$this->visit_date = date('r');
$this->register_date = date('r');
$this->locale = "fr_FR";
$this->timezone = "CEST";
$this->timezone = "Europe/Paris";
$con = pg_connect("host=".$config['SQL_host']." dbname=".$config['SQL_db']." user=".$config['SQL_user']." password=".$config['SQL_pass'])
or die ("Could not connect to server\n");