I generate a current timestamp like this:
<?php echo time(); ?>
The result is:
1589352983
Now I woule like to get all data from my mysql database where my row "time" is > than my current timestamp value.
The problem is, that my timestamp value has not the correct time zone. How can I set the time zone for my timestamp ?
I need GMT+02:00
UPDATE
I insert data into my mysql database. At this moment a timestamp will automatically create by mysql and will stored in the row "time"
In my php script I start a query where my php timestamp (which can be in the past, because it was generated minutes before) is < timestamp of my database
SELECT * FROM
tableWHERE
time> 1589354666 ORDER BY
timeDESC
1589354666 = the timestamp from my php script.
But here I get all my data because the timestamp is converted: 13.05.2020 09:24:26
But it will compare with the value: 13.05.2020 07:24:26