From: Edward Date: Mon, 20 Oct 2014 08:52:06 +0000 (+0800) Subject: UpdateCurrencyRate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=2ef660b538d4e7e61b0463a580142da4864b682b UpdateCurrencyRate.php --- diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index fc37c1f9..29188e63 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -101,8 +101,8 @@ class Pman_Core_UpdateCurrencyRate extends Pman $curr->setFrom(array( 'rate' => $rate, - 'from' => date('Y-m-d H:i:s', strtotime($fromDate)), - 'to' => date('Y-m-d H:i:s', strtotime($toDate)) + 'from_dt' => date('Y-m-d H:i:s', strtotime($fromDate)), + 'to_dt' => date('Y-m-d H:i:s', strtotime($toDate)) )); (empty($o)) ? $curr->insert() : $curr->update($o);