| Summary: | date formula skips a month (same formula hasn't been ok till today) | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Mark Mclean <mclean8414> |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | 5.3.4.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Mark Mclean
2018-01-29 15:30:28 UTC
confirm Version: 5.3.1.2 Build ID: e80a0e0fd1875e1696614d24c32df0f95f03deb2 CPU Threads: 8; OS Version: Linux 4.14; UI Render: default; VCL: kde4; Layout Engine: new; Locale: nl-BE (en_US.UTF-8); Calc: group ==> Version: 6.1.0.0.alpha0+ Build ID: 2d8f17565ebe867210f5769851d91b2e7b612a8f CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; Locale: nl-BE (en_US.UTF-8); Calc: group threaded 1. The formula has fundamental flaw. It takes today's year (2018), next month (2), and today's day (29), and combines into a date; Feb 29 2018 is one day after the actual last day in this year's February - so it is March 1st, which it properly shows. 2. When you take =MONTH(A1), where A1 is =now(), you get simply number 1. It is *NOT* a date, just a number. But if you will decide to format the cell with the 1 as date, you will get the date of LibreOffice base date (Options-LibreOffice Calc-Calculate) plus one day (i.e., Dec 31, 1899), so when you only show the month of that date, you rightfully get December. |