Update:A new tutorial can be found here for users with 10.04 Lucid Lynx LTS. This tutorial will not work with Lucid, since it uses F-Spot 0.6.1.5.
This is a tutorial, based on information gathered here, here and here. I chose to modify the original instruction at the first link so that we build and install the stable version, rather than the latest unstable version. Please read through the whole tutorial before you begin, so that you know what you are getting yourself in for. If you don't feel comfortable with this then don't take the chance, you might ruin something if you do it wrong.
Also, I'm not that great with Ubuntu and all this building from source stuff, but this is what I did to fix the problem described on the F-Spot bugzilla.
Backup F-Spot db
Just in case something screws up...
Remove existing F-spot
cp ~/.gnome2/f-spot/photos.db ~/.gnome2/f-spot/photos.db.Stable
We will be installing a different version of F-Spot, so we need to remove the old version first.
Install Prerequisite packages
sudo apt-get remove f-spot
We need to make sure all dependencies are satisfied, so that we can compile and install the fixed f-spot. You will need to add this PPA repository to your Software Sources. Visit the link and follow the instruction there.
Update: If you are using Ubuntu 9.10 Karmic Koala you do not need to add this repository, the main archives have the latest versions.
NOTE: You will need to have "Source Code" selected in System->Administration->Software Sources
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-mcs libmono-cairo2.0-cil automake automake1.9 libtool
sudo apt-get build-dep f-spot
Create Directory for source code
Download Source code
mkdir -p ~/source
This will download the f-spot source code from whatever repository you have specified in your Software Sources. This will normally just be the main Ubuntu repo.
NOTE: Do NOT specify "sudo" in front of this command, or the files will go to the wrong place.
apt-get source f-spot
Get the patch
Compile, build, install
wget http://bugzilla-attachments.gnome.org/attachment.cgi?id=107860 -O f-spot_no-utc-time_340903.patch
patch -p0 < f-spot_no-utc-time_340903.patch
Hopefully this has worked for you. It took me a while to get it right, the "./configure" and "make" commands kept failing because I didn't have the right prerequisites. If this happens for you, try using Synaptic Package Manager to locate and install the package that is called for. This my be a bit tricky, for example the first time I ran "make" it said that "/usr/lib/mono/1.0/mcs.exe was not found". I had to install the "mono-mcs" package to get this to work. You should try a similar approach if you encounter "file not found" errors during the compile and make stages.
sudo make install
Make sure you keep the ~/source directory, if you need to uninstall later, then run:
sudo make uninstall