From: David Schmidt <d.schmidt@tripwolf.com>
Date: Fri, 17 Jun 2011 14:19:26 +0000 (+0200)
Subject: explicit int cast, prevents the result rounding up to 1000 (4 digits)
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=701c96934b3da7a8560d5c53bc84fa7e6ccf0415;p=dbsrgits%2FDBIx-Class-Historic.git

explicit int cast, prevents the result rounding up to 1000 (4 digits)
---

diff --git a/Changes b/Changes
index 82c72c5..99958f6 100644
--- a/Changes
+++ b/Changes
@@ -22,6 +22,8 @@ Revision history for DBIx::Class
         - Accomodate MSAccess supporting only 'INNER JOIN' (not plain 'JOIN')
         - InflateColumn::DateTime option datetime_undef_if_invalid no longer
           masks missing dependency exceptions (RT#66823)
+        - Fix bug in Schema::Versioned failing to insert a schema version row
+          during upgrades at the turn of the second
 
 0.08192 2011-05-10 04:20 (UTC)
     * Fixes
diff --git a/lib/DBIx/Class/Schema/Versioned.pm b/lib/DBIx/Class/Schema/Versioned.pm
index a7c405c..a04b23e 100644
--- a/lib/DBIx/Class/Schema/Versioned.pm
+++ b/lib/DBIx/Class/Schema/Versioned.pm
@@ -719,7 +719,7 @@ sub _set_db_version {
       $dt[2],
       $dt[1],
       $dt[0],
-      $tm[1] / 1000, # convert to millisecs, format as up/down rounded int above
+      int($tm[1] / 1000), # convert to millisecs
     ),
   });
 }