nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-04-08 18:03
Návrat hore
Odpovedať s citátom
|
Yes, I'm not surprised with this.
The whole date/time stuff is one from the mayor features planned for future. It is rather complicated, needs lot of thought and current implementation is something like a workaround.
The reason for this buggy behaviour is, that PHP's date() function needs UNIX timestamp as an input parameter in order to format date using some mask. So not date/time is requested from database, but UNIX timestamp by calling SQL UNIX_TIMESTAMP() function on particular column. It probably returns 0 for dates before 1/1/1970.
Maybe formatting date using date() is generally bad idea and we should consider its replacement.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|