Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24 hour 12 hour clock toggle #35

Closed
WingofaGriffin opened this issue Nov 26, 2018 · 12 comments
Closed

24 hour 12 hour clock toggle #35

WingofaGriffin opened this issue Nov 26, 2018 · 12 comments

Comments

@WingofaGriffin
Copy link

Just a nitpick. Allow users to choose if they want 24 hour or 12 hour clock in settings.

@Litarvan
Copy link
Owner

Good idea, i'll take a look.
Should I add "PM" "AM" on the 12h clock ?

@WingofaGriffin
Copy link
Author

Probably a smart idea

@LoneFenris
Copy link

LoneFenris commented Nov 26, 2018

Shouldn't this be controlled by the time_format/time_language configuration option in webkit2-greeter's config?

@WingofaGriffin
Copy link
Author

It should be, but I tried playing around with it and nothing changed at all. The default value for it is LT auto, which should take the local defaults on that, with no dice. Even when I manually forced them to be US based with am pm, nothing changed. I think he has the time coded separately.

@LoneFenris
Copy link

LoneFenris commented Nov 26, 2018

Sorry, yes, I know that. My earlier comment was meant as a suggestion for how to implement localized time (12/24-hour). That is, as opposed to worrying about something like whether AM/PM should be included, just let moment.js handle figuring out the actual text (or the user if they customize the greeter's config file).

I assume webkit2-greeter has some kind of API call to get the localized time using the settings in its config file, but maybe the theme has to call moment.js directly? Might be worth looking to see how the default antergos theme does it.

@Litarvan
Copy link
Owner

I'm not using webkit2 greeter API for this, i'm using it for langage and i'm using webkit locale function for date, but i implemented the clock manually. I'll have a look at it

@Litarvan
Copy link
Owner

Added in 3.0.0-pre3, you can enable it in the Setup screen

@WingofaGriffin
Copy link
Author

12 Hour clock is still bugged. At midnight, is displays 0:XYam instead of 12:XYam

@Litarvan
Copy link
Owner

Oh that's my bad, i thought it was meant to be displayed this way so i implemented this myself, i'll reopen until i fix this

@Litarvan Litarvan reopened this Jan 25, 2019
@Litarvan
Copy link
Owner

I updated the release, download it again and it should be good.

@ax00b3
Copy link

ax00b3 commented Mar 7, 2019

you can enable it in the Setup screen

Can you be a bit more specific? How do I get to this setup screen?

EDIT: I'm on Arch and installed through pacman.

@Litarvan
Copy link
Owner

Litarvan commented Mar 7, 2019

The Setup screen is only on the pre-release which you can install manually from here https://github.com/Litarvan/lightdm-webkit-theme-litarvan/releases

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

No branches or pull requests

4 participants