I just found out that if I call datetime() regulary it returns correct time,
but when I call it after including wordpress (include('wp-load.php');
) the datetime() starts to return one hour less time (UTC time).
Wordpress is set to UTC+1. So how do I fix this problem?