[pLog-svn] r1299 - plugins/trunk/atom/class/net

oscar at devel.plogworld.net oscar at devel.plogworld.net
Thu Mar 3 23:32:13 GMT 2005


Author: oscar
Date: 2005-03-03 23:32:12 +0000 (Thu, 03 Mar 2005)
New Revision: 1299

Modified:
   plugins/trunk/atom/class/net/atomrequestgenerator.class.php
Log:
well it just needed a bit more tweaking :)


Modified: plugins/trunk/atom/class/net/atomrequestgenerator.class.php
===================================================================
--- plugins/trunk/atom/class/net/atomrequestgenerator.class.php	2005-03-03 23:21:14 UTC (rev 1298)
+++ plugins/trunk/atom/class/net/atomrequestgenerator.class.php	2005-03-03 23:32:12 UTC (rev 1299)
@@ -139,7 +139,14 @@
 		      $config =& Config::getConfig();
 		      $url = new Url($config->getValue( "base_url" ));
 		      $date = $resource->getTimestamp();
-		      $dateString = $date->getYear()."-".$date->getMonth()."-".$date->getDay();
+			  $month = $date->getMonth();
+			  if( $month < 10 && strlen($month) < 2)
+				$month = "0".$month;
+			  $day = $date->getDay();
+			  if( $day < 10 && strlen($day) < 2)
+				$day = "0".$day;
+
+		      $dateString = $date->getYear()."-".$month."-".$day;
 		      $tag = "tag:resource:".$url->getHost().",".$dateString.":".$resource->getId();
 		      
 		      return $tag;		




More information about the pLog-svn mailing list