Xtremer360 Posted August 27, 2012 Share Posted August 27, 2012 I?m working with dates in my database that are stored as gmt date times and trying to find the function that can turn that time after I take it out into a timestamp so I can run this if statement. if(strtotime($user_data->lock_date) > time()) How the lock_date gets set is like this: $wait_time = time() + (60*15); $this->users_model->lock_out_user($post_username, gmdate('Y-m-d H:i:s'), $wait_time); Quote Link to comment https://forums.phpfreaks.com/topic/267674-working-with-gmt/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.