MediaHound
Založený: 16.12.2007
Príspevky: 2
Zaslal: 2007-12-16 05:53
Návrat hore
Odpovedať s citátom
|
I spent a bit of time to figure this out reading several posts here, figured I would post the bit of code I use to display the date. My database has the date stored in the UNIX timestamp format, you know, like "1187121112" - something I personally cannot interpret when I see :)
Hopefully this saves somebody some time :)
| Kód: |
$opts['fdd']['date'] = array(
// added the two following lines to overwrite the unix timestamp with something comprehensible...
'sql' => 'FROM_UNIXTIME(date)',
'datemask' => 'D M j, Y g:i A',
'name' => 'Date',
'select' => 'T',
'maxlen' => 64,
'default' => '0',
'sort' => true
);
|
Basically, my installation, I had to add these two lines:
| Kód: |
'sql' => 'FROM_UNIXTIME(date)',
'datemask' => 'D M j, Y g:i A',
|
To edit the way the date shows up, day, month, year, time AM/PM, that sort of thing, head on over to:
http://php.net/date
Find the letters and such you want for your installation, and edit this bit:
Cheers!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|