jonathangeiger / kohana-jelly

See the link below for the most up-to-date code
https://github.com/creatoro/jelly
MIT License
146 stars 34 forks source link

Field_Tmestamp view default value #179

Closed koroboku closed 13 years ago

koroboku commented 13 years ago

Hi! in timestamp view file if I have default value it is not used. I think fix must be like this:

<?php echo Form::input($name, ( ! isset($default) OR ! isset($value)) ? '' : date($pretty_format, isset($value)?$value:$default), $attributes + array('id' => 'field-'.$name));?>

koroboku commented 13 years ago

sorry its wrong issue