projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c99d5db
)
Set date-style accordingly
author
Joey Schulze
<joey@infodrom.org>
Sat, 5 Apr 2014 07:47:45 +0000
(07:47 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 5 Apr 2014 07:47:45 +0000
(07:47 +0000)
class/database.class.php
patch
|
blob
|
history
diff --git
a/class/database.class.php
b/class/database.class.php
index
00eba85
..
ac55d08
100644
(file)
--- 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'");