Bug 131332 - HELP: replace custom date formats with ISO 8601 to stop promoting ambiguous formats
Summary: HELP: replace custom date formats with ISO 8601 to stop promoting ambiguous f...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0 target:25.8.0 target:25...
Keywords: difficultyBeginner, easyHack, skillDocumentation
Depends on:
Blocks:
 
Reported: 2020-03-14 08:41 UTC by Mike Kaganski
Modified: 2024-12-10 10:31 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of LO option dlalog (107.40 KB, image/png)
2024-11-28 14:17 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2020-03-14 08:41:51 UTC
In Help, e.g. [1], we have date strings that use non-ISO date formats. Unless there is a strong reason to use such format (like when various formats are described/discussed explicitly), it's best to always use ISO 8601 unambiguous date strings, to promote use of international standards helping people understand each other.

The task is to find and replace non-ISO dates in Help with their ISO 8601 counterparts - where applicable.

Regular expressions like "\d\d?/\d\d?/\d{2,4}" (including double quotes) might be useful when searching them in help repo.

[1] https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/03030110.html
Comment 1 Wolfgang Jäger 2020-03-14 09:56:50 UTC
+1
Comment 2 m_a_riosv 2024-06-02 08:32:45 UTC Comment hidden (obsolete)
Comment 3 fpy 2024-07-24 10:57:02 UTC
the example page (sbasic/shared/03030110) has been changed,
which raises the question to clarify the wording at top (conceptual) level :

* ISO = preferred ?
* non ISO = ??

e.g.
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/01020100.html#DateLiterals

https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03030102.html#par_id841643046880968
Comment 4 BogdanB 2024-11-24 19:02:41 UTC
Mike, no result here

bogdan@bogdan:~/Documente/help/help$ git grep "\d\d?/\d\d?/\d{2,4}"
bogdan@bogdan:~/Documente/help/help$
Comment 5 Mike Kaganski 2024-11-24 19:10:06 UTC
(In reply to BogdanB from comment #4)

`git grep` doesn't use regular expressions by default. Since the \d is not in grep's basic/extended metacharachers, your command should specify to Perl syntax:

> git grep -P "\d\d?/\d\d?/\d{2,4}"
Comment 6 Commit Notification 2024-11-26 21:05:12 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/6977846f119905354c5b449612e1e0b64fdf0722

tdf#131332: Replace custom date formats with ISO 8601
Comment 7 Commit Notification 2024-11-27 11:50:33 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/ce42a420ae28518aae72e72e06a8d3d8a3f33cc8

tdf#131332: Replace custom date formats with ISO 8601
Comment 8 Commit Notification 2024-11-27 12:23:40 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/0ecc00617e7b93d3869ea7d77c777ebe47db9896

tdf#131332: Replace custom date formats with ISO 8601
Comment 9 Commit Notification 2024-11-27 12:25:44 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/c73747f8fb95caee2f4bd5095b886e305bd7d684

tdf#131332: Replace custom date formats with ISO 8601
Comment 10 Commit Notification 2024-11-27 14:22:58 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/9b423c924ba73aab8b885304822fd92b00ee562d

tdf#131332: Replace custom date formats with ISO 8601
Comment 11 BogdanB 2024-11-27 19:56:02 UTC
Mike, can you make a search to see if is something else still left?
Comment 12 Olivier Hallot 2024-11-28 14:17:50 UTC
Created attachment 197839 [details]
screenshot of LO option dlalog

Options for LO Calc - Calculate - Date
Comment 13 Olivier Hallot 2024-11-28 14:18:29 UTC
Following changes in optionen/01060500.xhp on patch

https://git.libreoffice.org/help/+/0ecc00617e7b93d3869ea7d77c777ebe47db9896%5E%21/

The same change in date display should go to the Tools - Options - LibreOffice Calc - Calculate - Dates dialog page for consistency.

See image attached
Comment 14 BogdanB 2024-11-28 15:43:33 UTC
(In reply to Olivier Hallot from comment #12)
> Created attachment 197839 [details]
> screenshot of LO option dlalog
> 
> Options for LO Calc - Calculate - Date

The change is in gerrit
https://gerrit.libreoffice.org/c/core/+/177496
Comment 15 Commit Notification 2024-12-08 23:57:05 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a1b8b44bf99b331f6cd4b4583d08b6a01d5c4f03

tdf#131332: Replace custom date formats with ISO 8601

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 BogdanB 2024-12-09 04:53:03 UTC
Mike, can you check if there are dates remaining to be changed?
Comment 17 Mike Kaganski 2024-12-09 13:05:22 UTC
Yes; besides dates separated by slash /, there are dates separated by dot . - so the command would be

> git grep -P "\d\d?\.\d\d?\.\d{2,4}"
Comment 18 Commit Notification 2024-12-09 22:47:07 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/22c587639a5c06e9a61a390b4ea18da0cb0c0b68

tdf#131332: Replace custom date formats with ISO 8601
Comment 19 Commit Notification 2024-12-09 23:14:25 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/help/commit/fc527bd75b13dff6c78f6103723f05fd3eaea75b

tdf#131332: Replace custom date formats with ISO 8601
Comment 20 BogdanB 2024-12-10 04:34:20 UTC
Mike, can you check again?
Comment 21 Mike Kaganski 2024-12-10 04:51:44 UTC
Thanks Bogdan, looks done! I suppose, this can be marked completed. If any leftover is found, nothing prevents fixing it for a closed bug :-)
Comment 22 Commit Notification 2024-12-10 10:31:00 UTC
Bogdan Buzea committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/433fd1579949216906e931c1d331a5fa8023b117

tdf#131332: Replace custom date formats with ISO 8601

It will be available in 25.2.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.