fix add year
This commit is contained in:
1 parent
fa9e1eac2f
commit
3e1ef52534
1 file changed
+1
-2
@@ -244,9 +244,8 @@ trait Accessor
|
||||
*/
|
||||
public function setDateJalali($year, $month, $day)
|
||||
{
|
||||
list($year, $month, $day) = self::getGregorian($year, $month, $day);
|
||||
|
||||
if (static::isValidDate($year, $month, $day)) {
|
||||
list($year, $month, $day) = self::getGregorian($year, $month, $day);
|
||||
parent::setDate($year, $month, $day);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user