Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  striftimemask

phpMyEdit General     striftimemask
Odoslať novú tému   Odpovedať na tému    
 
JammerPro     Založený: 07.12.2006   Príspevky: 33  
Príspevok 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)
Príspevok 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    

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