11 require_once $smarty->_get_plugin_filepath(
'shared',
'make_timestamp');
35 } elseif ($default_date !=
'') {
41 $_win_from = array(
'%D',
'%h',
'%n',
'%r',
'%R',
'%t',
'%T');
42 $_win_to = array(
'%m/%d/%y',
'%b',
"\n",
'%I:%M:%S %p',
'%H:%M',
"\t",
'%H:%M:%S');
43 if (strpos($format,
'%e') !==
false) {
45 $_win_to[] = sprintf(
'%\' 2d', date(
'j', $timestamp));
47 if (strpos($format,
'%l') !==
false) {
49 $_win_to[] = sprintf(
'%\' 2d', date(
'h', $timestamp));
51 $format = str_replace($_win_from, $_win_to, $format);
53 return strftime($format, $timestamp);