it's weird and I've never experienced that before. I've created a new blog and a custom theme. I'm using
<?php echo date("H:i"); ?>in my theme.
The time that's put is 2h earlier. e.g. if it's actually 16:00 o'clock the date generated with date() is 14:00.
I don't know why that happens? I'm using the german wordpress version with the german language pack.
Also doesn't make a difference when putting
setlocale(LC_ALL, 'de_DE'); date_default_timezone_set('Europe/Berlin');
any idea how I could solve that? the time set in my wordpress settings is UTC+2 which is the correct time.