Hallo cr,
date() expects parameter 2 to be long, tring given in ...
Die Fehlermeldung kommt nur, wenn der zweite Parameter (Dein Zeitstempel) nicht numerisch ist. Das muss nicht notwenidgerweise heißen, dass das wirklich vom internen PHP-Typ her eine Zahl sein muss (das ist relativ egal), sondern dass es sinnvoll in eine Zahl konvertierbar sein muss. Das heißt:
date ('H:i', 1172055234); // funktioniert
date ('H:i', "1172055234"); // funktioniert
date ('H:i', "blubber"); // spuckt obige Warnung aus
Wenn obige Warnung also kommt, fütterst Du die Funktion also gar nicht mit einem UNIX-Timestamp.
Viele Grüße,
Christian
--
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup