fix sunday being first day of week (#2483)
This commit is contained in:
@@ -157,7 +157,7 @@ class InvoiceCreateCommand extends Command
|
||||
}
|
||||
|
||||
$timezone = new \DateTimeZone($timezone);
|
||||
$dateFactory = new DateTimeFactory($timezone);
|
||||
$dateFactory = new DateTimeFactory($timezone, $user->isFirstDayOfWeekSunday());
|
||||
|
||||
if (!empty($input->getOption('start')) && empty($input->getOption('end'))) {
|
||||
$io->error('You need to supply a end date if a start date was given');
|
||||
|
||||
Reference in New Issue
Block a user