Index: FileImportBackend.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/FileImportBackend.cs,v
retrieving revision 1.28
diff -u -r1.28 FileImportBackend.cs
--- FileImportBackend.cs	3 Dec 2005 18:43:55 -0000	1.28
+++ FileImportBackend.cs	17 Feb 2006 11:49:11 -0000
@@ -140,7 +140,24 @@
 		try {
 			if (copy) {
 				string dest = ChooseLocation (path);
+				
 				System.IO.File.Copy (path, dest);
+
+				// Set the creation date/time to same as original.				
+				DateTime createdate = System.IO.File.GetCreationTimeUtc (path);
+//				System.Console.WriteLine ("createdate = {0}", createdate);				
+
+				// SetCreationTimeUtc do not seem to work.
+				System.IO.File.SetCreationTimeUtc (dest, createdate);
+				
+				// SetLastWriteTimeUtc sets Creation and Last Write time.
+				System.IO.File.SetLastWriteTimeUtc (dest, createdate);
+				
+//				System.Console.WriteLine ("Creation time {0} for destination {1} ", dest, System.IO.File.GetCreationTimeUtc (dest));				
+//				System.Console.WriteLine ("Last Write time {0} for destination {1}", dest, System.IO.File.GetLastWriteTimeUtc (dest));				
+//				System.Console.WriteLine ("Last Access time {0} for destination {1}", dest, System.IO.File.GetLastAccessTimeUtc (dest));				
+
+				
 				photo = store.Create (dest, path, out thumbnail);
 				path = dest;
 			} else {
@@ -186,7 +203,7 @@
 
 		Finish ();
 	}
-
+	
 	public override void Finish ()
 	{
 		if (file_paths == null)
