Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / postcalendar [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 02 Oct 2002 12:19:09 | postnuke_modules/postcalendar | smarty_plugins.php,1.4,1.5 | Roger Raymond |
| fixed bug in date display format | |||
Update of /home/cvsroot/postnuke_modules/postcalendar
In directory ns7.hostnuke.net:/tmp/cvs-serv21047
Modified Files:
smarty_plugins.php
Log Message:
fixed bug in date display format
Index: smarty_plugins.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/smarty_plugins.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** smarty_plugins.php 2 Oct 2002 00:16:05 -0000 1.4
--- smarty_plugins.php 2 Oct 2002 12:19:07 -0000 1.5
***************
*** 92,96 ****
if(isset($date)) {
list($y,$m,$d) = explode('-',$date);
! echo strftime($format,mktime(0,0,0,$m,$d,$y));
} else {
echo strftime($format,time());
--- 92,97 ----
if(isset($date)) {
list($y,$m,$d) = explode('-',$date);
! //echo strftime($format,mktime(0,0,0,$m,$d,$y));
! echo strftime($format,smarty_make_timestamp($date));
} else {
echo strftime($format,time());
***************
*** 98,108 ****
}
! function postcalendar_smarty_pc_date_format($string, $default_date=null)
{
! $format = pnModGetVar('PostCalendar','pcEventDateFormat');
if($string != '') {
! return strftime($format, smarty_make_timestamp($string));
} elseif (isset($default_date) && $default_date != '') {
! return strftime($format, smarty_make_timestamp($default_date));
} else {
return;
--- 99,111 ----
}
! function postcalendar_smarty_pc_date_format($string, $format=null, $default_date=null)
{
! if(empty($format)) {
! $format = pnModGetVar('PostCalendar','pcEventDateFormat');
! }
if($string != '') {
! return date($format, smarty_make_timestamp($string));
} elseif (isset($default_date) && $default_date != '') {
! return date($format, smarty_make_timestamp($default_date));
} else {
return;
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |