Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Invalid date with german datemask before 1970-01-01

phpMyEdit Configuration     Invalid date with german datemask before 1970-01-01
Odoslať novú tému   Odpovedať na tému    
 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov