Reflect-OS / firmware

Firmware for ReflectOS - the approachable, configurable, and extensible OS for Raspberry Pi-based smart mirrors and displays. Built using Elixir, Nerves, the Scenic Framework, and Phoenix.
https://reflect-os.github.io
31 stars 1 forks source link

Feature Request: Local Time and Date section option #8

Open kombuking opened 2 weeks ago

kombuking commented 2 weeks ago

Following date format for the clock section to be added to the dropdown menu of options for Local Time and Date section:

roweyourboat90 commented 2 weeks ago

That seems to be an option already. I am able to select that option and it displays as your example.

dtraft commented 1 week ago

There is the "Day of the week with Month and Date" option, which displays as Friday, Nov 22. I believe this ask is to also provide a format which would render like Thursday, 22 Nov, which is straightforward to do and happy to add it as an option.

Thanks for the feature request!

dtraft commented 1 week ago

This just needs to be added as an option here: https://github.com/Reflect-OS/core/blob/main/lib/sections/date_time.ex#L134

Elixir formatting syntaxes can be found here: https://hexdocs.pm/elixir/Calendar.html#strftime/3-formatting-syntax

Would be a great first issue for someone looking to contribute :)