It lists me only the date : 01.01.1970 um 00:00 Uhr
That simply means you are thinking of $row['expires']
incorrectly. That is not a UNIX Timestamp value and is producing an invalid date. It means the value essentially evaluates to 0, which is Jan 1st 1970 in UNIX time
date()
requires you to send a valid Unix timestamp to it (INT 11), is that what you have in database for that field? or it is a date time field?
Try this
echo date("d.m.Y \u\m H:i \U\h\r", "2014-10-12"); //invalid
echo date("d.m.Y \u\m H:i \U\h\r", time()); //valid: current unix timestamp
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…