Index: trunk/kernel/include/parse.php
===================================================================
diff -u -r3201 -r3282
--- trunk/kernel/include/parse.php (.../parse.php) (revision 3201)
+++ trunk/kernel/include/parse.php (.../parse.php) (revision 3282)
@@ -501,8 +501,8 @@
$exp = isset($CurrentTheme->ParseCacheDate[$id]) ? $CurrentTheme->ParseCacheDate[$id] : false;
if($exp)
{
- //echo "$template Cache expires: ".date("m-d-Y h:m s",$exp)."
\n";
- if( $exp > time() )
+ //echo "$template Cache expires: ".adodb_date("m-d-Y h:m s",$exp)."
\n";
+ if( $exp > adodb_mktime() )
{
/* look for a cache file */
$t = new clsTemplate($template);
@@ -531,7 +531,7 @@
{
//echo "Writing Template ".$objTemplate->name."
\n";
$interval = $CurrentTheme->ParseCacheTimeout[$TemplateId];
- $CurrentTheme->UpdateFileCacheData($TemplateId,time()+$interval);
+ $CurrentTheme->UpdateFileCacheData($TemplateId,adodb_mktime()+$interval);
$dir = $CurrentTheme->ThemeDirectory()."/_cache/";
$objTemplate->WriteFile($dir);
}