Guest User

Untitled

a guest
Dec 9th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. $expires = strtotime( $_POST['expire_date']);
  2. if($expires < current_time('timestamp', 1))
  3.  
  4. $expires_epoch = strtotime( $_POST['expire_date']) - (( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ));
Add Comment
Please, Sign In to add comment