Quellcode durchsuchen

wip timezone handling

3.x
Andrew Wallo vor 7 Monaten
Ursprung
Commit
01aff27589
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1
    1
      app/Enums/Setting/DateFormat.php
  2. 1
    1
      app/Enums/Setting/PaymentTerms.php

+ 1
- 1
app/Enums/Setting/DateFormat.php Datei anzeigen

36
 
36
 
37
     public function getLabel(): ?string
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 Datei anzeigen

43
     {
43
     {
44
         $days = $this->getDays() ?? 0;
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
 }

Laden…
Abbrechen
Speichern