If you're going to judge this question as lacking details or being off-topic, please do not bother. Anyway, I have a website on a shared server. I am trying to insert data into a database with a timestamp defaulted to Africa/Cairo or +2 GMT but I am failing to achieve this. The time I get is CST no matter what I try. I used Now(), I changed the timezone, I even changed "date" in phpmyadmin to tinytext as my last resort. So help please. What is that code? I have searched everywhere on this website and it seems everyone is using their "servers" and not shared servers when giving answers.
At the begin of your php file, use this config set :
date_default_timezone_set("Europe/Paris");
Replace Europe/Paris by your own with this list : http://php.net/manual/en/timezones.php