Jump to content
n0TTT_

[Resolvido] as hora não ficam certas

Recommended Posts

n0TTT_

Boa tarde.

Eu tou com o problema aqui no php eu tenho:

<?php
$date = date("Y-m-d H:i:s");

echo $date;
?>

e a data aparece assim:

2013-11-05

13:33:44

Erro vocês podem não perceber mas é o seguinte, a data é de quando eu criei o tópico ou seja eu criei ás 18h e na data aparecem 13h.

Edited by Rui Carlos

Share this post


Link to post
Share on other sites
n0TTT_

$date = date("Y-m-d H:i:s"); dá-te a data e hora do servidor.

Já descobri como, obrigado na mesma ;)

Edited by n0TTT_

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.