mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	fix parse condition
This commit is contained in:
		| @ -57,7 +57,7 @@ class Payment extends Model implements HasMedia | ||||
|     public function setPaymentDateAttribute($value) | ||||
|     { | ||||
|         if ($value) { | ||||
|             $this->attributes['payment_date'] = Carbon::createFromFormat('Y-m-d', $value); | ||||
|             $this->attributes['payment_date'] = Carbon::parse($value)->format('Y-m-d'); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user