UpdateCurrencyRate.php
authorEdward <edward@roojs.com>
Mon, 20 Oct 2014 08:52:06 +0000 (16:52 +0800)
committerEdward <edward@roojs.com>
Mon, 20 Oct 2014 08:52:06 +0000 (16:52 +0800)
UpdateCurrencyRate.php

index fc37c1f..29188e6 100644 (file)
@@ -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);