I have following problem: I am using a php/mysql script from a friend who made it for me several years ago. Normaly i would host that script on a server in my country so there would be no problem at all as servertime would be my local time (Europe/Berlin).
But now i have hosted my domain in USA (NY) and my scripts adding the wrong time into the database (currently -5 hours).
So instead of adding 2017-03-23 19:00 it adds 2017-03-23 14:00
So my solution would be to change the mySQL queries and subtract the 5 hours and it would fit ... for now ... BUT on summer/wintertime change i would have to adjust the scripts again :(
So my question is: HOW can is change my NOW() to fit to my timezone (Europe/Berlin) ?
Here is one of my quesries so you could help me to edit it as i am a total noob and would need our help with it, thank you very much!
$insQuery = "INSERT INTO tbl_anmeldungen (fld_raid_id,fld_user_id,fld_anmelddate,fld_anmelde_notiz,fld_random) VALUES ('$raidID','$userID',NOW(),'$notiz','$myrand')";
all which needs to be changed/edited is the NOW() part to fix it to my timezone. If this would NOT be possible, how do i need to change the NOW() part so it will subtract 5 hours?
I really appreciate your help! Thank you!