ubports / indicator-datetime

The "Time & Date" indicator for Ubuntu Touch. No longer maintained. See https://github.com/AyatanaIndicators/ayatana-indicator-datetime
GNU General Public License v3.0
3 stars 6 forks source link

Use custom display of time from gsettings #33

Open mateosalta opened 3 years ago

mateosalta commented 3 years ago

Reproduce: in terminal: gsettings set com.canonical.indicator.datetime custom-time-format '%l:%M' gsettings set com.canonical.indicator.datetime time-format 'custom'

reboot device

What happens: Time in indicator still shows %p am/pm text in indicator

What should happen: Time is displayed according to the custom format

mateosalta commented 3 years ago

using com.canonical.indicator.datetime time-format '12-hour' or '24-hour' should also be respected, would be a great way to implement locale independent time display

kugiigi commented 3 years ago

This can be a solution on supporting manual setting of time format but I'm not sure if this is the best place to implement it since it's specific to the indicator. But I do want to try to implement this :)