@@ 126-134 (lines=9) @@ | ||
123 | * |
|
124 | * @return void |
|
125 | */ |
|
126 | public function setModelAttribute($value) |
|
127 | { |
|
128 | $value = ! empty($value) |
|
129 | ? Carbon::createFromFormat($this->getPickerFormat(), $value, $this->getTimezone()) |
|
130 | ->timezone(config('app.timezone'))->format($this->getFormat()) |
|
131 | : null; |
|
132 | ||
133 | parent::setModelAttribute($value); |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * @param Request $request |
@@ 112-120 (lines=9) @@ | ||
109 | * |
|
110 | * @return void |
|
111 | */ |
|
112 | public function setModelAttribute($value) |
|
113 | { |
|
114 | $value = ! empty($value) |
|
115 | ? Carbon::createFromFormat($this->getPickerFormat(), $value, $this->getTimezone()) |
|
116 | ->timezone(config('app.timezone'))->format($this->getFormat()) |
|
117 | : null; |
|
118 | ||
119 | parent::setModelAttribute($value); |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * @return array |