Project

General

Profile

Bug #81275

Updated by Loon Buster over 7 years ago

hello. 

 <pre><code> 
 'config' => [ 
    'type' => 'input', 
    'size' => 4, 
    'eval' => 'time,required', 
    'default' => time() 
 ] 
 </code></pre> 

 *bad:* 

 -'default' => time(),- 

 *good:* 

 'default' => mktime(date("G")+1,date("i"),0,1,1,1970) 

 --- 

 _+1 = Timezone ;)_ 

 .loon

Back