The date and time that are stored in my database, such as: - 2017-01-11 10:01:55 I want it to insert the same thing as I know, but while you are showing, I want it to be displayed as a time zone, for example, in India by the hours of Asia / Calcutta I used
date_default_timezone_set('Asia/Kolkata');
$timestamp = date("Y-m-d h:m:i");
but it works if the insert code is not displayed, and I do not want to mention which time zone can be by default, it automatically determines the time zone and displays please help tried it also
date_default_timezone_set('UTC');
no success
Ghugu source
share