Skip to content

Commit

Permalink
Added Datetime field
Browse files Browse the repository at this point in the history
  • Loading branch information
Magmodules committed Apr 24, 2017
1 parent 2158953 commit c74ffa0
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Magmodules.eu - http://www.magmodules.eu
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Magmodules
* @package Magmodules_Fadello
* @author Magmodules <[email protected]>
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

class Magmodules_Fadello_Block_Adminhtml_System_Config_Form_Field_Datetime
extends Mage_Adminhtml_Block_System_Config_Form_Field
{

/**
* @param Varien_Data_Form_Element_Abstract $element
*
* @return mixed
*/
public function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
return Mage::getModel('core/date')->date('Y-m-d H:i:s');
}

}

0 comments on commit c74ffa0

Please sign in to comment.