After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 472760 - Confusing date editing behaviour
Confusing date editing behaviour
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal major
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-09-02 08:13 UTC by J.H.M. Dassen (Ray)
Modified: 2007-09-03 12:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description J.H.M. Dassen (Ray) 2007-09-02 08:13:32 UTC
* Start gnumeric in env LC_ALL=C.
* Select column A, format cells as Date, format "d-mmm-yyyy".
* In A1, enter "1-3".
  This is displayed, as expected, as "1-Mar-2007".
* Edit A1 using F2.
  The edit string is, unexpectedly, in US format: "3/1/2007".
* Hit enter.
  The cell value has now been changed into "3-Jan-2007", by an edit that should
  have been a no-op (F2, enter).
Comment 1 Morten Welinder 2007-09-02 13:03:10 UTC
Ouch.
Comment 2 Morten Welinder 2007-09-02 22:28:55 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 J.H.M. Dassen (Ray) 2007-09-03 06:17:22 UTC
Confirming that F2, enter is a no-op again through
	http://svn.gnome.org/viewcvs/goffice/trunk/goffice/utils/go-format.c?r1=1779&r2=1847
plus
	http://svn.gnome.org/viewcvs/gnumeric/trunk/src/wbc-gtk-edit.c?r1=15740&r2=15843
although I'm wondering if it wouldn't be cleaner in this case to have the
edit string (after F2) be in the same format as the display format.
Comment 4 Morten Welinder 2007-09-03 12:38:33 UTC
There is no guarantee that the formatted value contains enough information
to reconstruct the right value.  Think of "dd-mmm" or "mmm", for example.

Additionally, editing a format like "Monday, September 3, 2007" is not
pleasant.  Do I have to change to Tuesday if I change 3 to 4?