Commit 7dcb6f93 authored by amakhov's avatar amakhov

Fix SQLite

parent e93ec328
......@@ -135,7 +135,7 @@ class SqlitePlatform extends AbstractPlatform
*/
public function getDateAddHourExpression($date, $hours)
{
return "DATE(" . $date . ",'+". $hours . " hour')";
return "DATETIME(" . $date . ",'+". $hours . " hour')";
}
/**
......@@ -143,7 +143,7 @@ class SqlitePlatform extends AbstractPlatform
*/
public function getDateSubHourExpression($date, $hours)
{
return "DATE(" . $date . ",'-". $hours . " hour')";
return "DATETIME(" . $date . ",'-". $hours . " hour')";
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment