beagle r4704 - in trunk/beagle/Util/F-Spot: Imaging upstream-changes
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4704 - in trunk/beagle/Util/F-Spot: Imaging upstream-changes
- Date: Sun, 13 Apr 2008 21:01:31 +0100 (BST)
Author: dbera
Date: Sun Apr 13 21:01:31 2008
New Revision: 4704
URL: http://svn.gnome.org/viewvc/beagle?rev=4704&view=rev
Log:
Import old 08-exif-timestamp-local.diff
Added:
trunk/beagle/Util/F-Spot/upstream-changes/08-exif-timestamp-local.diff
Modified:
trunk/beagle/Util/F-Spot/Imaging/Exif.cs
Modified: trunk/beagle/Util/F-Spot/Imaging/Exif.cs
==============================================================================
--- trunk/beagle/Util/F-Spot/Imaging/Exif.cs (original)
+++ trunk/beagle/Util/F-Spot/Imaging/Exif.cs Sun Apr 13 21:01:31 2008
@@ -248,8 +248,9 @@
string[] dt_data = dt.Split ( delimiters.ToCharArray(), 6 );
DateTime result;
try {
+ // Assume local time
result = new DateTime (Int32.Parse(dt_data[0]), Int32.Parse(dt_data[1]), Int32.Parse(dt_data[2]),
- Int32.Parse(dt_data[3]), Int32.Parse(dt_data[4]), Int32.Parse(dt_data[5]));
+ Int32.Parse(dt_data[3]), Int32.Parse(dt_data[4]), Int32.Parse(dt_data[5]), DateTimeKind.Local);
} catch (FormatException) {
result = DateTime.MinValue;
}
Added: trunk/beagle/Util/F-Spot/upstream-changes/08-exif-timestamp-local.diff
==============================================================================
--- (empty file)
+++ trunk/beagle/Util/F-Spot/upstream-changes/08-exif-timestamp-local.diff Sun Apr 13 21:01:31 2008
@@ -0,0 +1,19 @@
+From: Debajyoti Bera <dbera web gmail com>
+
+Assume local time for exif timestamps. Its what the camera clock says, and I doubt sane people put UTC on clocks.
+
+Index: Imaging/Exif.cs
+===================================================================
+--- Imaging/Exif.cs (revision 4703)
++++ Imaging/Exif.cs (working copy)
+@@ -248,8 +248,9 @@
+ string[] dt_data = dt.Split ( delimiters.ToCharArray(), 6 );
+ DateTime result;
+ try {
++ // Assume local time
+ result = new DateTime (Int32.Parse(dt_data[0]), Int32.Parse(dt_data[1]), Int32.Parse(dt_data[2]),
+- Int32.Parse(dt_data[3]), Int32.Parse(dt_data[4]), Int32.Parse(dt_data[5]));
++ Int32.Parse(dt_data[3]), Int32.Parse(dt_data[4]), Int32.Parse(dt_data[5]), DateTimeKind.Local);
+ } catch (FormatException) {
+ result = DateTime.MinValue;
+ }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]