Index: /branches/1.2/ChangeLog
===================================================================
--- /branches/1.2/ChangeLog	(revision 470)
+++ /branches/1.2/ChangeLog	(revision 471)
@@ -1,4 +1,5 @@
 1.2.2 2007-?-?
 == ChangeLog ==
+ * live with wrong system time: allow caching files with mtime in further
  * bug fix for compatibility with Zend Optimizer and other non-cachable
  * #102: segv when var cacher is too small
Index: /branches/1.2/xcache.c
===================================================================
--- /branches/1.2/xcache.c	(revision 470)
+++ /branches/1.2/xcache.c	(revision 471)
@@ -719,4 +719,5 @@
 	xc_entry_data_php_t *php;
 	char *ptr;
+	time_t delta;
 
 	if (!filename || !SG(request_info).path_translated) {
@@ -769,5 +770,6 @@
 
 stat_done:
-		if (XG(request_time) - pbuf->st_mtime < 2 && !xc_test) {
+		delta = XG(request_time) - pbuf->st_mtime < 2;
+		if (abs(delta) < 2 && !xc_test) {
 			return 0;
 		}
