Changed the date format on Block Syncing overlay #18291

pull dannmat wants to merge 1 commits into bitcoin:master from dannmat:mar-20-date-format-string changing 1 files +1 −1
  1. dannmat commented at 9:04 PM on March 7, 2020: none

    The default date format used by QDate has a weird format (Fri Mar 7 11:34:02 2020), so I have changed this to a format that is more user-friendly (2020-03-07 11:34:02).

    <img width="821" alt="Bitcoin Core New Date" src="https://user-images.githubusercontent.com/9567098/76152382-f8a37e00-60b6-11ea-8569-be6d69b892c6.png">

  2. Changed the date format on Block Syncing overlay 4a443d39c7
  3. achow101 commented at 9:26 PM on March 7, 2020: member

    Concept NACK.

    What is weird about the default date format? I find it clearer and more user friendly than the format you propose. It is clear and unambiguous about the day and month. The issue with strictly numeric date formats such as the one you propose is that different countries have standardized on different day and month order, so sometimes there is confusion as to which number is the date and month. By putting the month as the abbreviated month string, this is unambiguous.

  4. dannmat commented at 9:29 PM on March 7, 2020: none

    I agree with what you're saying regarding the wording, I can change that back. The main reason for the change is the year being on the opposite end of the string. It was very hidden in my opinion.

  5. fanquake added the label GUI on Mar 7, 2020
  6. kallewoof commented at 12:56 AM on March 8, 2020: member

    Where does the default date string come from anyway? I wish there was a user setting. (I for one strongly agree with this change, but that's also because it's the format I would use myself.)

    As a sidenote, @achow101 I don't think there is any ambiguity about 2020-02-03 being February 3rd, though. It's when you do 2/3 that some people think February, and others think March. (I think March 2nd) I could be wrong though...

  7. emilengler commented at 2:33 PM on March 8, 2020: contributor

    Concept NACK.

    ISO 8601 is good for international and machine readable stuff. However most people prefer to have the date format based on their locale

  8. kallewoof commented at 4:56 PM on March 8, 2020: member

    @emilengler This is obviously not the locale of the user though, or they would presumably not be confused enough to go through the trouble of making a pull request...

  9. hebasto commented at 1:14 PM on March 9, 2020: member

    @dannmat Welcome!

    Concept ACK on making ISO 8601 date format available to a user via settings. @kallewoof

    I wish there was a user setting. (I for one strongly agree with this change, but that's also because it's the format I would use myself.)

    Me too ;) @dannmat

    ... a weird format (Fri Mar 7 11:34:02 2020)...

    ... weird wording about local date format ;)

  10. emilengler commented at 5:05 PM on March 9, 2020: contributor

    @kallewoof At least it has something to do with the system settings I think. On some systems and desktop this effects how date and times look. For example: iOS. I think Qt fetches this by default

  11. sipa commented at 5:14 PM on March 9, 2020: member

    @emilengler I think @kallewoof is saying that indeed the string should be localized according to the user's locale settings, but probably isn't done so correctly. If it was, the author likely wouldn't have decided to change it.

  12. dannmat commented at 7:00 PM on March 9, 2020: none

    So after reading the documentation for QDate, I have found that QDate.toString() uses the QLocale class to retrieve a localized DateTime string.

    The same information is provided in textual format by toString(). The day and month numbers can be mapped to names using QLocale.

    I believe in this case, using a custom format (changed to include wording, e.g '2 July 2020 15:17:54') would be best, as it's more readable for the user and still uses localisation (string in French would still be '2 Juillet 2020 15:17:54').

  13. dannmat commented at 7:03 PM on March 9, 2020: none

    Documentation for anyone who wants to take a look

  14. kallewoof commented at 1:16 AM on March 10, 2020: member

    @dannmat I disagree with hard-coding the wording; it will not look okay on all languages. "2 7月 2020 15:17:54" does not look correct in Japanese, for example.

  15. laanwj commented at 3:54 PM on March 10, 2020: member

    Agree with NACK. User-presented dates are exactly the one place where locale-specfic formatting is desired. FWIW on some OSes you can override the date/time locale if you don't like this (LC_TIME on Linux). As added bonus this will affect other software as well.

  16. dannmat commented at 7:07 PM on March 10, 2020: none

    Ok, I think the consensus here is that we should stick with the original solution.

  17. dannmat closed this on Mar 10, 2020

  18. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me