Bug with expiry date
-
Hi,
change made for expiry date happens one day earlier, broke date expiry in other language than english.
In file class-woocommerce-gift-cards-common-function.php in woo-gift-cards-lite/includes/ if language is in french, at line 126 this code `$args[‘expirydate’] = gmdate( $selected_date, strtotime( ‘-1 day’, strtotime( $args[‘expirydate’] ) ) );
`
returns today date. strtotime only accept date in english format and received a french format.You should change that.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug with expiry date’ is closed to new replies.