[f-spot/FSPOT_0_6_0_STABLE] do not try to convert the date to UInt32 on Upgrade, copy the raw data
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] do not try to convert the date to UInt32 on Upgrade, copy the raw data
- Date: Wed, 9 Sep 2009 14:34:52 +0000 (UTC)
commit 33f1d9fc4a6e3fdd00e0aa34d17d2a26a1cb5238
Author: Stephane Delcroix <stephane delcroix org>
Date: Wed Sep 9 16:33:27 2009 +0200
do not try to convert the date to UInt32 on Upgrade, copy the raw data
this fixes bgo #594016 for people with digital photos from the 19th century or from the post2038 era
src/Updater.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Updater.cs b/src/Updater.cs
index 1b47eb4..5e23e32 100644
--- a/src/Updater.cs
+++ b/src/Updater.cs
@@ -536,12 +536,12 @@ namespace FSpot.Database {
Uri base_uri = photo_uri.GetDirectoryUri ();
string md5 = reader["md5_sum"] != null ? reader ["md5_sum"].ToString () : null;
-
+
Execute (new DbCommand (
"INSERT INTO photos (id, time, base_uri, filename, description, roll_id, default_version_id, rating, md5_sum) " +
"VALUES (:id, :time, :base_uri, :filename, :description, :roll_id, :default_version_id, :rating, :md5_sum)",
"id", Convert.ToUInt32 (reader ["id"]),
- "time", Convert.ToInt32 (reader ["time"]),
+ "time", reader ["time"],
"base_uri", base_uri.ToString (),
"filename", filename,
"description", reader["description"].ToString (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]