Jump to content

datetime stamp not in my timezone

datetime timezone mysql

  • Please log in to reply
No replies to this topic

#1 Ron



  • Members
  • PipPip
  • 19 posts

Posted 26 March 2014 - 08:27 PM

When I post to MySQL the datetime is about 3 hrs behind. Where is my issue? I want the user to post in their timezone, too. 


Here is an example...

        $user_logs_update4 = array(
        "ID" => $primary_key,
        "LastUpdate" => date('Y-m-d H:i:s'));
        $this->db->update('table',$user_logs_update4,array('ID' => $primary_key));

Need some help on this one. I am a beginner in PHP. I would need detailed instructions.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users