mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for date format
This commit is contained in:
parent
2074258d4e
commit
3c731b72ec
@ -27,7 +27,8 @@ class DateFormatsSeeder extends Seeder
|
|||||||
];
|
];
|
||||||
|
|
||||||
foreach ($formats as $format) {
|
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) {
|
if ($record) {
|
||||||
$record->picker_format = $format['picker_format'];
|
$record->picker_format = $format['picker_format'];
|
||||||
$record->save();
|
$record->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user