You are here

function _uc_coupon_mktime in Ubercart Discount Coupons 7.2

Same name and namespace in other branches
  1. 6 uc_coupon.admin.inc \_uc_coupon_mktime()
  2. 7.3 uc_coupon.admin.inc \_uc_coupon_mktime()
2 calls to _uc_coupon_mktime()
uc_coupon_add_form_submit in ./uc_coupon.admin.inc
Coupon form submit handler.
uc_coupon_add_form_validate in ./uc_coupon.admin.inc
Coupon form validate handler.

File

./uc_coupon.admin.inc, line 1198
Discount Coupons administration pages.

Code

function _uc_coupon_mktime($month, $day, $year) {
  $func = variable_get('uc_coupon_expiry_timezone', 0) ? 'mktime' : 'gmmktime';
  $hour = variable_get('uc_coupon_expiry_hour', 0);
  $time = $func($hour, 0, 0, $month, $day, $year);

  //dpm($time . ' ' . date('m/d/y h:i:s T', $time), 'using ' . $func . '(' . $hour . ')');
  return $func($hour, 0, 0, $month, $day, $year);
}