From 2ef660b538d4e7e61b0463a580142da4864b682b Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 20 Oct 2014 16:52:06 +0800 Subject: [PATCH] UpdateCurrencyRate.php --- UpdateCurrencyRate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2