summaryrefslogtreecommitdiff
path: root/smartyplugins/modifier.bit_date_nls.php
blob: c4931fb331ab8067e1e9f5a735a5617026d0ab13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace Bitweaver\Plugins;

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * required setup
 */
global $gBitSmarty;
// $gBitSmarty->loadPlugin( 'smarty_modifier_bit_date_format' );

/**
 * smarty_modifier_bit_long_datetime
 */
function smarty_modifier_bit_date_nls( $pString ) {
	global $gBitSystem;
	return \Bitweaver\Plugins\smarty_modifier_bit_date_format( $pString, '%Y-%m-%d %H:%M', '%Y%m%d %H%M' );
}