Heacy rewrite/cleanup:
[mailer.git] / inc / modules / admin / what-send_coupon.php
index cbb5d8a1ca8b604f91e1ba3d384b3ede8c1985ca..6dcccbd68d9bff82540d339913eada2b3afbe915 100644 (file)
@@ -72,7 +72,7 @@ ORDER BY
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
 
                        // Insert coupon data
-                       sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES ('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
+                       sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES ('{%%pipe,getSqlTimestampFromUnix=%s%%}', %s,%s,'%s')",
                                array(
                                        $expirationTime,
                                        sqlNumRows($result),