1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00

Fix for date format

This commit is contained in:
Hillel Coren 2016-08-07 12:57:08 +03:00
parent 2074258d4e
commit 3c731b72ec

View File

@ -27,7 +27,8 @@ class DateFormatsSeeder extends Seeder
];
foreach ($formats as $format) {
$record = DateFormat::whereFormat($format['format'])->first();
// use binary to support case-sensitive search
$record = DateFormat::whereRaw("BINARY `format`= ?", array($format['format']))->first();
if ($record) {
$record->picker_format = $format['picker_format'];
$record->save();