Bug correction in minutes handling in payback

This commit is contained in:
Phyks 2013-09-15 16:12:01 +02:00
parent ccb89358bf
commit 2fc4311c54

View File

@ -56,9 +56,7 @@
} }
public function setDate($minute, $hour, $day, $month, $year) { public function setDate($minute, $hour, $day, $month, $year) {
if((int) $minute < 10) $minute = '0'.$minute; $this->date = DateTime::createFromFormat('Y-n-j G:i', (int) $year.'-'.(int) $month.'-'.(int) $day.' '.(int) $hour.':'.$minute);
$this->date = DateTime::createFromFormat('Y-n-j G:i', $year.'-'.(int) $month.'-'.(int) $day.' '.(int) $hour.':'.$minute);
} }
public function setInvoice($invoice_id) { public function setInvoice($invoice_id) {