Index
Music Player Project RSS Feeds forum rss config Login/out Calendar Downloads Wiki FAQ Search News Album Registration Memberlist Profile Portal Forum Contact us
 mktime() Kalender Problem -gelöst View unanswered posts

Post new topicReply to topic
Author Message
rebirther
Admin



Gender:

Joined: 19 Dec 2005
Posts: 2801
Location: Germany


de.png

PostPosted: 24.07.2010, 21:06    mktime() Kalender Problem -gelöst Reply with quoteBack to top

function mydateformat($thisdate, $dateformat='d M Y G:i', $span=0)
{
   global $cal_config;

   if ($cal_config['cal_dateformat']) {
      $dateformat = $cal_config['cal_dateformat'];
      }

   // date comes in as the following:
   $myr = substr($thisdate, 0, 4);
   $mym = substr($thisdate, 5, 2);
   $myd = substr($thisdate, 8, 2);
   $myh = substr($thisdate, 11, 2);
   $myn = substr($thisdate, 14, 2);
   $mys = substr($thisdate, 17, 2);

   if ($span || ($myh=='00' && $myn=='00' && $mys=='00')) {
      // Need to strip out any TIME references so...
      $timerefs = array ('a','A','B','g','G','h','H','i','I','s');
      while (list(,$val) = each ($timerefs))
         {
         $dateformat = ereg_replace($val, "", $dateformat);
         }
      // strip out any characters used for time
      $dateformat = ereg_replace('[:\.]', " ", $dateformat);
   }

   $returndate = date($dateformat, mktime ($myh,$myn,$mys,$mym,$myd,$myr));
   return $returndate;
}


 mktime() expects parameter 1 to be long,
mktime() expects parameter 3 to be long,


$returndate = date($dateformat, mktime ($myh,$myn,$mys,$mym,$myd,$myr));

Lösung:
$returndate = date($dateformat, mktime ($myh+0,$myn+0,$mys+0,$mym+0,$myd+0,$myr+0));

_________________
http://signature.statseb.fr/sig-922.png

OfflineView user's profileSend private messageSend e-mailSkype NameICQ Number    
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



Show permissions


Werbepartner: Hundeschule Potsdam

Powered by Orion based on phpBB



CBACK Orion modified by Rebirther
Statistics - All times are GMT + 1 Hour

[ Page generation time: 0.0669s (PHP: 82% - SQL: 18%) | SQL queries: 22 | GZIP disabled | Debug on ]