Skip to content

Option to show date in ISO format - #124

Closed
naoki-mizuno wants to merge 3 commits into
21cncstudio:mainfrom
naoki-mizuno:feature/iso-date
Closed

naoki-mizuno wants to merge 3 commits into
21cncstudio:mainfrom
naoki-mizuno:feature/iso-date

Conversation

@naoki-mizuno

Copy link
Copy Markdown
Contributor

Summary

Following up on the Japanese language addition, I added the ability to show the dates in ISO format (YYYY-MM-DD). The option is added in the date/time settings page, next to the 12/24 button. Since the "apply now" button is now shorter, German "JETZT ANWENDEN" becomes two lines (other languages looked fine). Google Translate tells me it means "apply now" and I think this can simply be "anwenden," but I don’t speak German so I left it intact.

There is a migration logic for the units_mdy boolean option, and keeps the sensible defaults for Fahrenheit → MM/DD/YYYY (for US) and Celsius → DD.MM.YYYY (EU).

It seems the .eez-project file was missing from the repo, so if you could either add that file to the repo, or update it on your end so that future changes will not revert this change, that would be great.

As in the other PR, if you prefer to have the commits squashed into one please let me know.

Checklist

  • I have read CONTRIBUTING.md and agree to the CLA.
  • I tested my changes or explained why tests are not applicable.
  • I updated documentation if needed.

Replace the boolean units_mdy config field with a DateFormat enum
(MDY/DMY/ISO). StorageManager migrates legacy units_mdy on load.

Assisted-by: Claude (Anthropic)
Date format is now an independent 3-state setting (MDY/DMY/ISO) instead
of being derived from the temperature unit. Switching temperature units
still seeds a sensible default (°F->MDY, °C->DMY), but the date format
can be cycled independently and persists across boots. Repurpose the
unused on_units_mdy handler into on_date_format (cycles on click).

Assisted-by: Claude (Anthropic)
Add a DATE-FORMAT button next to the 12/24 toggle that cycles
MDY -> DMY -> ISO and shows the active mode. Shrink the APPLY NOW
button to make room. Wire the click handler in the event binder.

Assisted-by: Claude (Anthropic)

Copy link
Copy Markdown
Owner

Hi Naoki,

Thank you for the PR. The ISO date format option is a good idea, and your implementation was very helpful as a reference.

I reworked this on my side instead of merging the PR directly, mainly because this screen is generated from my EEZ project and I need to keep the generated UI files in sync with the source layout. I added a separate date format setting with MDY / DMY / ISO, kept migration from the old units_mdy value, and adjusted the Japanese default so Japanese uses ISO by default after stabilization.

I also kept temperature units and date format independent after the initial/default choice, so switching °C/°F will not overwrite a manually selected date format.

Regarding the German label: I shortened JETZT ANWENDEN to ANWENDEN so it fits the updated layout better.

I tested the implementation locally and on the device. I really appreciate the idea and the detailed notes about the EEZ source file.

@21cncstudio 21cncstudio closed this Jul 4, 2026

Copy link
Copy Markdown
Owner

Hi @naoki-mizuno,

Thank you again for the ISO date-format proposal and implementation!

I reworked the code to keep the generated EEZ UI files in sync and to preserve migration from the old setting, but your PR was an important reference for the final MDY / DMY / ISO date-format feature added in 343a78b.

I’m now improving how Project Aura records community contributions. The project has an Individual Contributor License Agreement, and I’d appreciate it if you could read the current CLA. If you’re happy with it, please post the following exact text as a separate comment containing only this sentence:

I have read and agree to the Project Aura Individual Contributor License Agreement v2.0, and I hereby sign it.

Separately from the CLA, I’d like to record this PR properly and credit your contribution to the date-format design and implementation.

Thank you again for helping make Aura work better for Japanese and ISO-format users!

@naoki-mizuno

Copy link
Copy Markdown
Contributor Author

I have read and agree to the Project Aura Individual Contributor License Agreement v2.0, and I hereby sign it.

@github-actions

Copy link
Copy Markdown

Thank you for contributing to Project Aura. Before this pull request can be merged,
every contributor must read the
Project Aura CLA
and post the exact signature statement shown below.


I have read and agree to the Project Aura Individual Contributor License Agreement v2.0, and I hereby sign it.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

21cncstudio added a commit that referenced this pull request Jul 17, 2026
Document the Japanese localization and configurable date format work that was manually integrated from PRs #123 and #124.

Co-authored-by: Naoki Mizuno <naoki.mizuno.256@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants