Skip to content

Commit

Permalink
Add default date format
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rault committed Jun 12, 2015
1 parent 10fd251 commit b902a5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,14 @@ protected function compileOffset(Builder $query, $offset)
return '';
}

/**
* Get the format for database stored dates.
*
* @return string
*/
public function getDateFormat()
{
return 'Y-m-d H:i:s.u';
}

}

0 comments on commit b902a5e

Please sign in to comment.