1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for date time format

This commit is contained in:
Hillel Coren 2016-08-14 08:55:41 +03:00
parent 0a5d0ea44c
commit 042b4d8297

View File

@ -55,7 +55,7 @@ class DateFormatsSeeder extends Seeder
]; ];
foreach ($formats as $format) { foreach ($formats as $format) {
$record = DatetimeFormat::whereFormat($format['format'])->first(); $record = DatetimeFormat::whereRaw("BINARY `format`= ?", array($format['format']))->first();
if ($record) { if ($record) {
$record->format_moment = $format['format_moment']; $record->format_moment = $format['format_moment'];
$record->save(); $record->save();