Datumsproblem

Datumsproblem

am 26.06.2006 13:00:11 von Micha Kuehn

Hallo, ich möchte gerne das Datum der letzten Änderung ausgeben:

$stand = date("d.m.Y - H:i",getlastmod($dateiname));
echo $stand;

ergibt bei mir: 25.06.2006 - 14:46
Der Windows-Explorer sagt aber, dass die Datei am 26.6.2006 um 12:21
geändert wurde.

Habt ihr Ideen?

Micha
--
Persönliche Mails: Bitte nur als reply - und als Wurmkur werden alle
Mails > 100 KB automatisch und unbesehen gelöscht!

Re: Datumsproblem

am 26.06.2006 13:10:03 von Frank Schenk

Micha Kuehn wrote:
> Hallo, ich möchte gerne das Datum der letzten Änderung ausgeben:
>
> $stand = date("d.m.Y - H:i",getlastmod($dateiname));
> echo $stand;
>
> ergibt bei mir: 25.06.2006 - 14:46
> Der Windows-Explorer sagt aber, dass die Datei am 26.6.2006 um 12:21
> geändert wurde.

RTFM

getlastmod -- Gets time of last page modification
int getlastmod ( void )
http://de3.php.net/manual/en/function.getlastmod.php

Note: If you're interested in getting the last modification time of a
different file, consider using filemtime() ¹.

gruß, Frank

¹ http://de3.php.net/manual/en/function.filemtime.php

Re: Datumsproblem

am 26.06.2006 13:17:45 von Micha Kuehn

Frank Schenk schrieb:
> Note: If you're interested in getting the last modification time of a
> different file, consider using filemtime() ¹.

Dieser entscheidende Hinweis fehlt in meiner deutschen chm-Version!
Danke!

(Trotzdem: der 25.6. stimmt auch nicht für die php-Datei...)

Micha
--
Persönliche Mails: Bitte nur als reply - und als Wurmkur werden alle
Mails > 100 KB automatisch und unbesehen gelöscht!

Re: Datumsproblem

am 26.06.2006 13:35:20 von Frank Schenk

Micha Kuehn wrote:
> Frank Schenk schrieb:
>
>> Note: If you're interested in getting the last modification time of a
>> different file, consider using filemtime() ¹.
>
>
> Dieser entscheidende Hinweis fehlt in meiner deutschen chm-Version!
> Danke!

Deshalb immer die aktuelle englische Dokumentation inkl. User
Contributed Notes benutzen (Benutzt du Apache 2? Lies dir mal die Doku
zu getmodtime() und filemtime() durch)


gruß, Frank