Skip to content

Commit b902a5e

Browse files
author
Maxime Rault
committed
Add default date format
1 parent 10fd251 commit b902a5e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Query/Grammars/DB2Grammar.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,14 @@ protected function compileOffset(Builder $query, $offset)
147147
return '';
148148
}
149149

150+
/**
151+
* Get the format for database stored dates.
152+
*
153+
* @return string
154+
*/
155+
public function getDateFormat()
156+
{
157+
return 'Y-m-d H:i:s.u';
158+
}
159+
150160
}

0 commit comments

Comments
 (0)