| Index
» Projekty
» phpMyEdit
» Fórum
» striftimemask |
 |
JammerPro
Založený: 07.12.2006
Príspevky: 33
Zaslal: 2009-07-24 05:57
Návrat hore
Odpovedať s citátom
|
Mysql database contains a time field that is set to default 00:00:00 (24 hour format).
I would like to use the strftime mask so that I can enter a time like 7:00 pm in phpmyedit and have the data base field see it as 19:00:00.
This DOES NOT work:
$opts['fdd']['EventTime']= array(
'name' => 'EventTime',
'select' => 'T',
'maxlen' => 8,
'strftimemask' => '%r',
'default' => '00:00:00',
'sort' => true
);
Any suggestions?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-07-25 02:11
Návrat hore
Odpovedať s citátom
|
You would need to write some triggers to evaluate and conditionally modify $newvals['EventTime']. Probably not easy to accomplish.
You might find some examples if you search the forum for a few words such as: triggers time format
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|