Set date-style accordingly
authorJoey Schulze <joey@infodrom.org>
Sat, 5 Apr 2014 07:47:45 +0000 (07:47 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 5 Apr 2014 07:47:45 +0000 (07:47 +0000)
class/database.class.php

index 00eba85..ac55d08 100644 (file)
@@ -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'");