@@ 60-71 (lines=12) @@ | ||
57 | * |
|
58 | * @return null|string |
|
59 | */ |
|
60 | protected function getFormatedDate($date) |
|
61 | { |
|
62 | if (! is_null($date)) { |
|
63 | if (! $date instanceof Carbon) { |
|
64 | $date = Carbon::parse($date); |
|
65 | } |
|
66 | ||
67 | $date = $date->timezone($this->getTimezone())->format($this->getFormat()); |
|
68 | } |
|
69 | ||
70 | return $date; |
|
71 | } |
|
72 | } |
|
73 |
@@ 77-88 (lines=12) @@ | ||
74 | * |
|
75 | * @return null|string |
|
76 | */ |
|
77 | protected function getFormatedDate($date) |
|
78 | { |
|
79 | if (! is_null($date)) { |
|
80 | if (! $date instanceof Carbon) { |
|
81 | $date = Carbon::parse($date); |
|
82 | } |
|
83 | ||
84 | $date = $date->timezone($this->getTimezone())->format($this->getFormat()); |
|
85 | } |
|
86 | ||
87 | return $date; |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @return $this|NamedFormElement|mixed|null|string |