Closed sknishizaki closed 3 years ago
Applied this suggestion as part of https://github.com/strangerstudios/pmpro-gift-levels/pull/9
This has been merged into the latest dev branch, you can grab a pre-release from here - https://github.com/strangerstudios/pmpro-gift-levels
The code to generate a new discount code when a gift membership is purchased uses the current time and doesn't appear to take into account the GMT offset. This leads to codes that "aren't active" being sent out. I modified with $starts = date("Y-m-d", strtotime("-1 day")) just to really be safe.