Index: brilliant_gallery.install
===================================================================
--- brilliant_gallery.install	(revision 31868)
+++ brilliant_gallery.install	(working copy)
@@ -59,7 +59,7 @@
       ),
       'datetime' => array(
         'description' => 'Date and time of last value refresh.',
-        'mysql_type' => 'datetime',
+        'type' => 'int',
         'not null' => TRUE,
       ),
     ),
@@ -148,7 +148,7 @@
       ),
       'datetime' => array(
         'description' => t('Date and time of last value refresh.'),
-        'mysql_type' => 'datetime',
+        'type' => 'int',
         'not null' => TRUE,
       ),
     ),
Index: cron.inc
===================================================================
--- cron.inc	(revision 31868)
+++ cron.inc	(working copy)
@@ -21,7 +21,7 @@
  */
 function brilliant_gallery_clean_table_image_arrays() {
   $deletecreatedbeforethistime = REQUEST_TIME -brilliant_gallery_get_days_in_seconds(variable_get('brilliant_gallery_cache_duration', 90));
-  $deletecreatedbeforethistime = date( 'Y-m-d H:i:s', $deletecreatedbeforethistime );
+  $deletecreatedbeforethistime = $deletecreatedbeforethistime;
   //echo "DELETE FROM {brilliant_gallery_image_arrays} WHERE datetime < '".$deletecreatedbeforethistime."'"; exit();
   // TODO Please convert this statement to the D7 database API syntax.
   $dbres = db_query("DELETE FROM {brilliant_gallery_image_arrays} WHERE datetime < '" . $deletecreatedbeforethistime . "'");
Index: functions.inc
===================================================================
--- functions.inc	(revision 31875)
+++ functions.inc	(working copy)
@@ -121,12 +121,12 @@
     $fields = new stdClass();
     $fields->hash = $bgimgproperties_hash;
     $fields->array = serialize($bgimgproperties_array);
-    $fields->datetime = date('Y-m-d H:i:s', REQUEST_TIME);
+    $fields->datetime = REQUEST_TIME;
     drupal_write_record("brilliant_gallery_image_arrays", $fields);
   } else {
     // Run an update
     $change = array(
-        'datetime' => date('Y-m-d H:i:s', REQUEST_TIME),
+        'datetime' => REQUEST_TIME,
         'hash' => $bgimgproperties_hash,
     );
     drupal_write_record('brilliant_gallery_image_arrays', $change, 'hash');
