Jump to content

Working with gmt


Xtremer360

Recommended Posts

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);

Link to comment
https://forums.phpfreaks.com/topic/267674-working-with-gmt/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.