|
@@ -485,9 +485,13 @@ class MacroServiceProvider extends ServiceProvider
|
485
|
485
|
Carbon::macro('toDefaultDateFormat', function () {
|
486
|
486
|
$dateFormat = CompanySettingsService::getDefaultDateFormat();
|
487
|
487
|
|
488
|
|
- $this->format($dateFormat);
|
|
488
|
+ return $this->format($dateFormat);
|
|
489
|
+ });
|
489
|
490
|
|
490
|
|
- return $this;
|
|
491
|
+ Carbon::macro('inCompanyTimezone', function () {
|
|
492
|
+ $timezone = CompanySettingsService::getDefaultTimezone();
|
|
493
|
+
|
|
494
|
+ return $this->setTimezone($timezone);
|
491
|
495
|
});
|
492
|
496
|
|
493
|
497
|
ExportColumn::macro('money', function () {
|