php - Date_default_timezone wrong -


i looking bug real long time. discovered it, cant fix myself. im using date_default_timezone_set function, , set europe/amsterdam. when echo this:

echo date_default_timezone_get() . ' => ' . date('e') . ' => ' . date('t'); echo date('y-m-d h:i:s', time()); 

the response follow: europe/amsterdam => europe/amsterdam => cest2015-06-18 05:44:21

as see no problem, in fact there is. because in amsterdam 17:44:21 atm, date okay, time isn't.

someone had bug before or how can solve problem?

thanks in advance!

from date manual:

h     12-hour format of hour leading zeros    01 through 12 h     24-hour format of hour leading zeros    00 through 23 

use h instead of h in format string.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -