From: Joey Schulze Date: Sat, 5 Apr 2014 07:47:45 +0000 (+0000) Subject: Set date-style accordingly X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=9180df49682c887b9ce4e0969810dd8294abc1bd Set date-style accordingly --- diff --git a/class/database.class.php b/class/database.class.php index 00eba85..ac55d08 100644 --- a/class/database.class.php +++ b/class/database.class.php @@ -9,6 +9,7 @@ class Database { public function __construct($driver, $host, $dbname, $user, $passwd) { $this->db = new PDO(sprintf('%s:host=%s;dbname=%s', $driver, $host, $dbname), $user, $passwd); + $this->db->query("SET DateStyle = 'ISO'"); # $this->db->query("SET NAMES 'utf8'"); # $this->db->query("SET CHARACTER SET 'utf8'");