Преглед на файлове

wip timezone handling

3.x
Andrew Wallo преди 2 месеца
родител
ревизия
01aff27589
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      app/Enums/Setting/DateFormat.php
  2. 1
    1
      app/Enums/Setting/PaymentTerms.php

+ 1
- 1
app/Enums/Setting/DateFormat.php Целия файл

@@ -36,6 +36,6 @@ enum DateFormat: string implements HasLabel
36 36
 
37 37
     public function getLabel(): ?string
38 38
     {
39
-        return now()->translatedFormat($this->value);
39
+        return company_today()->translatedFormat($this->value);
40 40
     }
41 41
 }

+ 1
- 1
app/Enums/Setting/PaymentTerms.php Целия файл

@@ -43,6 +43,6 @@ enum PaymentTerms: string implements HasLabel
43 43
     {
44 44
         $days = $this->getDays() ?? 0;
45 45
 
46
-        return now()->addDays($days)->translatedFormat($format);
46
+        return company_today()->addDays($days)->translatedFormat($format);
47 47
     }
48 48
 }

Loading…
Отказ
Запис