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

Clock Item Format #1040

Open
chalamministries opened this issue Nov 21, 2024 · 11 comments
Open

Clock Item Format #1040

chalamministries opened this issue Nov 21, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@chalamministries
Copy link

Describe the feature
Ability to set the format for the time on the Clock Item you add to a slide. Maybe dropdown of layouts.
Ability to also show the date as well as time

@chalamministries chalamministries added the enhancement New feature or request label Nov 21, 2024
Copy link
Author

I'll try to work on my fork to see if I can implement this if you think its worth it

@vassbo
Copy link
Collaborator

vassbo commented Nov 21, 2024

What formats did you have in mind?

For date and also digital time you can use a normal textbox with (right click) "Dynamic values" (It's missing 12h time at the moment).

But go ahead if you think it should be implemented into the clock item! :)

@chalamministries
Copy link
Author

chalamministries commented Nov 21, 2024 via email

@mwb9aa
Copy link

mwb9aa commented Nov 24, 2024

I have a different clock enhancement. I would like the option to show only minutes and seconds. For example, with a timer for service start, I would like the timer to show 90:00 instead of 01:30:00. Maybe this can be a checkbox to choose the HH:MM:SS or MM:SS format.

I would like this because the text width stays more consistent if I can run MM:SS, instead of HH:MM:SS.

@vassbo Would you like me to make a separate enhancement request?

@chalamministries
Copy link
Author

I'm currently working on the feature updates for clock and timers. I'll have to think about this but currently I'm not sure if that's doable as MM is only minutes up to 60 as programmed with JavaScript datetime.

@vassbo
Copy link
Collaborator

vassbo commented Nov 25, 2024

@mwb9aa That would be doable in the "Timer" item, we can keep this here for now.
@chalamministries If you want to do that you can do it, but if not I'll do it once you have finished updating the clock/timers.

@chalamministries
Copy link
Author

chalamministries commented Nov 25, 2024 via email

@vassbo
Copy link
Collaborator

vassbo commented Nov 26, 2024

Great. Possibly a dropdown for the most common values, and the last option in the dropdown would be "Custom" where you can enter a value like HH:MM:SS in a textbox!

@chalamministries
Copy link
Author

@mwb9aa I know you are asking about a different feature, but would you like to share your input on the clock date/time format? Do you think simple dropdowns with some predefined formats? Or do you think users will know how to use the HH:mm:ss formating?

@mwb9aa
Copy link

mwb9aa commented Nov 26, 2024

@chalamministries I don't think it matters much. A dropdown is most accessible, but I think the HH:mm:ss style writing is very common practice, and would just need a note in the documentation. I like what @vassbro put here. I think that gets the best of both worlds. Having said that JavaScript is not good with a variety of date formats. I'm not sure how Electron or Svelte handle them (if at all). PHP handles a variety of formats.

My preference is that all numerical values have a leading zero, but in my area, I think the general populace prefers no leading zero (02 instead of 2).

Dropdown Date/Time items:

  • Month Day Year Time /12 (numerical)
  • Month Day Year Time /24 (numerical)
  • Day Month Year Time /12 (numerical)
  • Day Month Year Time /24 (numerical)
  • Month Day Year Time /12 (textual)
  • Month Day Year Time /24 (textual)
  • Day Month Year Time /12 (textual)
  • Day Month Year Time /24 (textual)
  • Custom Format:

Dropdown Timer items:

  • hour:minutes:seconds /12
  • hour:minutes:seconds /24
  • minutes:seconds
  • seconds
  • Custom Format:

As big as the dropdown list is, it might be easier/faster/cleaner just to make a note in the documentation as to the formats and have a single default format (like it is now), but allow a user to edit the format with an option in the timer/date create/edit box.

  • Custom Format <input type="text" ... placeholder="Type custom format. Please see the documentation for accepted formats.">

@chalamministries
Copy link
Author

Just letting everyone know, I'm still working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants