Skip to content

Commit

Permalink
Merge pull request #8 from janikaja/master
Browse files Browse the repository at this point in the history
date representation format in DateFieldRenderer class fixed
  • Loading branch information
strads10 committed Jul 26, 2017
2 parents 2ed7607 + a498939 commit eafcad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin/Form/Fields/Renderer/DateFieldRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ protected function getInput()

if( !$value )
{
$value = date( 'Y-m-d H:m' );
$value = date( 'Y-m-d H:i' );
}

return Html::input()
->setName( $this->field->getNameSpacedName() )
->setValue( date( 'Y-m-d H:m', strtotime( $value ) ) )
->setValue( date( 'Y-m-d H:i', strtotime( $value ) ) )
->addClass( 'text datetime-picker' );
}
}

0 comments on commit eafcad1

Please sign in to comment.