9
I’m recording the date and time in the database with the script:
$sql = "INSERT INTO admin_users (user_name, user_password_hash, user_email, user_data)
VALUES('" . $user_name . "', '" . $user_password_hash . "', '" . $user_email . "', '" . date('d/m/Y H:i:s') . "' );";
but the time is recorded from the server, and not from Brasilia. How to record the time of Brasilia?
What, just fix the server time? Or I who did not understand the question..
– MarceloBoni
@Renan, if the server is in the same GMT range of Brasilia, have no reason to correct the time, but if not, the correction is necessary, can make use of time zones.
– mutlei
I’m on the local wamp server, when hosting I’ll have time issues?
– user20098
It depends on where he is. If he is in São Paulo, for example, he can leave the time of Brasilia even.
– mutlei
Could this be? http://answall.com/a/47694/101?
– Maniero