GNOME Bugzilla – Bug 343970
Info Box time is not in local time.
Last modified: 2006-06-07 18:28:56 UTC
Rittyan found a bug where the time in browsemode is in local time, but the time in the info box is in UTC time. From IRC session <rittyan> I think I found a bug... in our f-spot's browsers photo's date is 6:26 and 6:57... and on sidebar its 2:26 and 2:57... <rittyan> nothing about this "2:26" and "2:57" in metadata browser :< <rittyan> (real time of course is 6am) <rittyan> http://img173.imageshack.us/img173/5682/fspotbug6df.jpg Checking the InfoBox.cs code on row 271 gives: date_label.Text = String.Format ("{0}\n{1}", photo.Time.ToShortDateString (), photo.Time.ToShortTimeString ()); And checking IconView.cs on row 245 gives: if (cell_width > 200) { date = photo.Time.ToLocalTime ().ToString (); } else { date = photo.Time.ToLocalTime ().ToShortDateString (); }
Created attachment 66804 [details] [review] small patch A small two liner patch, to display the correct time in the info box. date_label.Text = String.Format ("{0}\n{1}", - photo.Time.ToShortDateString (), - photo.Time.ToShortTimeString ()); + photo.Time.ToLocalTime ().ToShortDateString (), + photo.Time.ToLocalTime ().ToShortTimeString ());
committed.