Bug 103601 - Month formatting MMM and MMM gives wrong result
Summary: Month formatting MMM and MMM gives wrong result
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 13:50 UTC by Benny Jensen
Modified: 2016-10-31 23:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file (12.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-10-31 23:15 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benny Jensen 2016-10-31 13:50:25 UTC
Description:
When formatting month with MMM (jan, feb, mar etc) or MMMM (january, february etc) results on wrong text. 2015-01-01, 2016-01-01, 2017-01-01 etc returns december while the other months are returned as january. This happens if you have extracted the month with the function MONTH().

Steps to Reproduce:
1.Create a list with dates from for example 2013-01-01, 2013-02-01, 2013-03-01 etc
2.Extract month from the liste of dates with the function MONTH()
3.Format the extracted list with MM or MMM to create the result.

Actual Results:  
Dec, Jan, Jan

Expected Results:
Jan, Feb, Mar


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Comment 1 Benny Jensen 2016-10-31 13:59:21 UTC
The underlying displayed values from the Function MONTH are correct month value 1, 2, 3, 4, 5, 6, etc.
Comment 2 m_a_riosv 2016-10-31 23:15:05 UTC
Created attachment 128394 [details]
Sample file

I think there is not such bug.

When you use the MONTH() function you gets only the month number 1-12.

The format for dates only works properly on cells with a date value.

So to format for getting the text month you can't extract the month.

Please take a look to the attache file.