Bug 92605 - Format for editing Time does not match the format assigned to a cell.
Summary: Format for editing Time does not match the format assigned to a cell.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Edit-Mode
  Show dependency treegraph
 
Reported: 2015-07-07 19:07 UTC by Aprax
Modified: 2022-01-22 19:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample of issue (10.25 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-07-13 18:10 UTC, Aprax
Details
just formats (28.16 KB, image/png)
2017-09-29 17:20 UTC, Aprax
Details
editing format (29.08 KB, image/png)
2017-09-29 17:21 UTC, Aprax
Details
example of editing format (36.16 KB, image/png)
2019-03-07 12:20 UTC, Aprax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aprax 2015-07-07 19:07:23 UTC
When double clicking on a cell to edit a time value, the input format should match the format assigned by the user to the cell.


For example, a cell has been assigned a standard format of "13:37", which is the 24 hour military format, "HH:MM".

However the cell is displayed for editing in the full 12 hour format "HH:MM:SS xM" where x may be either A or P. 
If the column width is set to fit the "HH:MM", the edit forces a second line containing the seconds and the AM/PM.

An the original value of "14:00" is displayed for editing as:
02:00:   <on line 1
00 AM    <on line 2

and the user is forced to not only change the time value from "00" to "30" but also drop down a line and change AM to PM to get the desired result of "14:30".
Comment 1 Jacques Guilleron 2015-07-13 13:18:46 UTC
Hi Aprax,

I don't reproduce with 
LO 4.4.4.3 Build ID: 2c39ebcf046445232b798108aa8a7e7d89552ea8
& windows 7 Home Premium
Can you provide a spreadsheet showing this behaviour?
Comment 2 Aprax 2015-07-13 18:10:56 UTC
Created attachment 117213 [details]
Sample of issue

It is pretty easy to create the attached sample that demonstrates the issue.
The attachment contains a cell with Notes that may help understand the issue.
Comment 3 Jacques Guilleron 2015-07-13 23:12:42 UTC
Thanks for the sheet.
Issue appears only with US locale for me.
I don't see it with french or UK locale, where default format for Time is HH:MM:SS.
Comment 4 Aprax 2015-07-14 12:02:39 UTC
The issue does, in one sense, involve the 'default', because it uses the default format for the editing despite the fact that I have set the format to be "13:37" and expect the editing to use the "13:37" format and NOT convert "14" to :02" and magically pull a "PM" from the air.

Yes, there would be no issue if I was willing to use the default format for all my time columns except some sheets would be 3 feet (1 Meter) wide on a much smaller monitor or the font would have to be very small.... 

To say it again, 

I would like the editing to use the user's selected format, 
i.e. that was consciously and with specific purpose chosen by the user, for a cell.

LO does the right thing for Date and Number formats and should for Time formats.
Comment 5 Buovjaga 2015-07-29 17:32:01 UTC
(In reply to Aprax from comment #4)
> I would like the editing to use the user's selected format, 
> i.e. that was consciously and with specific purpose chosen by the user, for
> a cell.
> 
> LO does the right thing for Date and Number formats and should for Time
> formats.

I agree -> NEW.

Repro with US locale.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+ (x64)
Build ID: e92a8b92072284fd7c37d7bb3e1e8fe72a185f35
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2015-07-22_21:46:26
Locale: fi-FI (fi_FI)
Comment 6 QA Administrators 2016-09-20 10:21:20 UTC Comment hidden (obsolete)
Comment 7 Aprax 2016-09-20 16:48:19 UTC
You sent an email asking:
=======================
"If you have time, please do the following:

Test to see if the bug is still present on a currently supported version of
LibreOffice 
(5.1.5 or 5.2.1

If you want to do more to help you can test to see if your issue is a
REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your
bug pertains to a feature added after 3.3)"

If the bug was present with 3.3 - set version to "inherited from OOo";
If the bug was not present in 3.3 - add "regression" to keyword
=======================
I took a backup image of my system

I uninstalled v 4.4.4.3 and then installed v 5.2.1.2
the problem still exists

I uninstalled v 5.2.1.2 and then installed v 3.3.0.4
the problem still exists so I'll set version to "inherited from OOo

I didn't test with v 5.1.5.x, that would be redundant after v 5.2.1.2

I restored my backup image to 4.4.4.3 because there are still rendering issues with any of the v 5 releases although 5.2.1.2 wasn't quite as bad as earlier v 5's. There was NO rendering issue with v 3.3.0.4 at all, but rendering is a different bug, I just wanted to explain why I've stayed with v 4.

J
Comment 8 Xisco Faulí 2017-09-29 08:52:29 UTC Comment hidden (obsolete)
Comment 9 Aprax 2017-09-29 17:18:29 UTC
The problem still exists in 5.3.6.1, see screenshots which show formatting and editing.
Comment 10 Aprax 2017-09-29 17:20:07 UTC
Created attachment 136627 [details]
just formats

shows default Time format and user selected format
Comment 11 Aprax 2017-09-29 17:21:17 UTC
Created attachment 136628 [details]
editing format

shows that editing format does not reflect the user chosen format for the cell
Comment 12 Aprax 2018-03-06 14:37:16 UTC Comment hidden (no-value)
Comment 13 QA Administrators 2019-03-07 03:43:59 UTC Comment hidden (obsolete)
Comment 14 Aprax 2019-03-07 12:16:45 UTC
The problem still exists in V 6.2.0.3 (x64).
The Resolved as Fixed is a lie.
Comment 15 Aprax 2019-03-07 12:20:18 UTC
Created attachment 149787 [details]
example of editing format
Comment 16 QA Administrators 2022-01-21 03:37:45 UTC Comment hidden (obsolete)
Comment 17 Aprax 2022-01-22 16:17:01 UTC
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: threaded
Comment 18 Aprax 2022-01-22 16:18:34 UTC
Works for me now, thanks.