mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop
This commit is contained in:
commit
ecb9141921
@ -142,7 +142,7 @@ class ImportableConverter
|
|||||||
try {
|
try {
|
||||||
// add exclamation mark for better parsing. http://php.net/manual/en/datetime.createfromformat.php
|
// add exclamation mark for better parsing. http://php.net/manual/en/datetime.createfromformat.php
|
||||||
$dateFormat = $this->config['date-format'] ?? 'Ymd';
|
$dateFormat = $this->config['date-format'] ?? 'Ymd';
|
||||||
if ('!' !== $dateFormat{0}) {
|
if ('!' !== $dateFormat[0]) {
|
||||||
$dateFormat = '!' . $dateFormat;
|
$dateFormat = '!' . $dateFormat;
|
||||||
}
|
}
|
||||||
$object = Carbon::createFromFormat($dateFormat, $date);
|
$object = Carbon::createFromFormat($dateFormat, $date);
|
||||||
|
Loading…
Reference in New Issue
Block a user