File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public function getFirstDayOfQuarter(): Jalalian
169169 {
170170 return new static (
171171 $ this ->getYear (),
172- ($ this ->getQuarter () - 1 ) * Carbon::MONTHS_PER_QUARTER ,
172+ ($ this ->getQuarter () - 1 ) * Carbon::MONTHS_PER_QUARTER + 1 ,
173173 1 ,
174174 $ this ->getHour (),
175175 $ this ->getMinute (),
@@ -180,7 +180,7 @@ public function getFirstDayOfQuarter(): Jalalian
180180
181181 public function getEndDayOfWeek (): Jalalian
182182 {
183- $ endWeek = $ this ->subDays (6 - $ this ->getDayOfWeek ());
183+ $ endWeek = $ this ->addDays (6 - $ this ->getDayOfWeek ());
184184
185185 return (new static (
186186 $ endWeek ->getYear (),
@@ -211,7 +211,7 @@ public function getEndDayOfYear(): Jalalian
211211 return new static (
212212 $ this ->getYear (),
213213 12 ,
214- $ this ->getDaysOf ($ this -> getMonth () ),
214+ $ this ->getDaysOf (12 ),
215215 $ this ->getHour (),
216216 $ this ->getMinute (),
217217 $ this ->getSecond (),
You can’t perform that action at this time.
0 commit comments