Bug 139517 - Calc: Date values toggle between date and text when changed
Summary: Calc: Date values toggle between date and text when changed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Number-Format
  Show dependency treegraph
 
Reported: 2021-01-09 18:57 UTC by Michael
Modified: 2024-04-03 13:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Language Locale Settings (97.57 KB, image/jpeg)
2021-01-10 20:50 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2021-01-09 18:57:26 UTC
Description:
When a field, which is already defined as a date and has a date in it, is changed to reflect a new date, the value is saved as a text value rather than converting to a proper date format.  For example: 1 jan should become 01 Jan 21, but it simply becomes '1 jan (text string).  Typing 1 jan again will convert properly to a date (01 Jan 21).  Alternating attempts result in a date, string, date, string, etc.  See steps for exact details.

Steps to Reproduce:
1) New spreadsheet
2) Highlight column A
3) Press Ctrl-1
4) Numbers tab Format code = DD MMM YY
5) Press OK
6) Go to cell A1
7) Type 15 dec and press TAB
8) You should now see 15 Dec 20 (or 21 if we are in 2021)
9) Press the left arrow to go back to A1
10) Type 15 dec and press TAB
11) You will now see '15 dec (press F2 to see)
12) The field converted to text verses staying with the previous date format and adding the year
13) Go to step 9 and repeat several more times and you will see that it keeps cycling between the two formats


Actual Results:
Date is entered as a string rather than converting to a date format.

Expected Results:
Convert text to a defined date format.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Ayush Jain 2021-01-09 23:31:58 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 900573fbd77993a48f012b074f498913befbeb26
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 2 m_a_riosv 2021-01-10 12:55:55 UTC
I can't reproduce
Version: 7.2.0.0.alpha0+ (x64)
Build ID: f2171af6ce3516598d9f8bac8294025a21a5b1a2
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

Is the month introduced on the locale language? (Menu/Tools/Options/Language settings/Language - Locale)
Comment 3 LeroyG 2021-01-10 14:42:10 UTC
Related question in ask.libreoffice.org:

https://ask.libreoffice.org/en/question/284225/
Comment 4 Michael 2021-01-10 20:50:07 UTC
Created attachment 168807 [details]
Language Locale Settings

Here are the settings I have.
Comment 5 QA Administrators 2023-01-11 03:23:23 UTC Comment hidden (obsolete)
Comment 6 Eike Rathke 2023-04-24 16:18:48 UTC
Looks related to bug 135541, day/month order discrepancy between LibreOffice locale (en-US) and the actual format's date order.
Comment 7 Kira Tubo 2023-08-26 01:58:06 UTC
This bug is still reproducible in: 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e15bf7363adb20c77aee51e09b6f2604d741619b
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 8 Kira Tubo 2023-09-08 06:00:15 UTC
Not reproducible in LO v. 3.3.0, therefore it is a regression
Comment 9 Timur 2024-03-28 15:12:23 UTC
As expected in 6.1, not in 6.2. 

    source 4d51531130988d87839bb7b0c077a5df43b2a6be
author	Eike Rathke <erack@redhat.com>	Mon May 20 21:44:02 2019 
committer	Caolán McNamara <caolanm@redhat.com>	Mon Jun 10 22:46:06 2019 

Resolves: tdf#125109 prefer edit format's acceptance patterns and YMD order