? content_distribution-821700.patch
? content_distribution-822064.patch
Index: includes/content_distribution_handler_argument_node_updated_since.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_distribution/includes/Attic/content_distribution_handler_argument_node_updated_since.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 content_distribution_handler_argument_node_updated_since.inc
--- includes/content_distribution_handler_argument_node_updated_since.inc	8 Feb 2010 21:21:42 -0000	1.1.2.1
+++ includes/content_distribution_handler_argument_node_updated_since.inc	8 Jun 2010 20:05:48 -0000
@@ -15,7 +15,13 @@ class content_distribution_handler_argum
     // to either SQL or PostGres speak.
     // For some reason 's' makes it all go wrong but we don't need it anyway.
     $this->arg_format = 'YmdHi';
-    $this->formula = views_date_sql_format($this->arg_format, "***table***.$this->real_field");
+    
+    /**
+     * Views configures date functions to operate in UTC, so we need to pass
+     * a 0 for offset so views_date_sql_format() doesn't try to convert our nice
+     * UTC timecode back to the site timezone.
+     */
+    $this->formula = views_date_sql_format($this->arg_format, "***table***.$this->real_field", 'int', 0);
   }
 
   /**
