Hello,
I have time set to local time zone as source.
'2024-03-15 00:32'
How to get this local time as unix timestamp relative to GMT timezone?
And using this $gmt_timestamp
I want to get the same time as below code
date_default_timezone_set('Europe/Istanbul');
echo date('Y-m-d H:i', $gmt_timestamp);
Output: 2024-03-15 00:32
If I save it to the database as a local time timestamp, local time + 3 more hours are added because the local time zone is applied when showing the date on more than one page.
I believe if I save the local time as GMT in a unix timestamp to the database it will show the time correctly on other pages