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

Let the user configure output time format #43

Open
Martoon-00 opened this issue Jan 25, 2023 · 4 comments
Open

Let the user configure output time format #43

Martoon-00 opened this issue Jan 25, 2023 · 4 comments
Milestone

Comments

@Martoon-00
Copy link
Member

Clarification and motivation

Some users like 24-clock format, some prefer am/pm abbreviations, we should make this configurable on per-user basis if that's possible.

Also, let's thoroughly choose what should be the default.

Acceptance criteria

  • The time format in translated time is made configurable.
@Martoon-00
Copy link
Member Author

Note, that if we start keeping per-user information, we can also improve our tips. Instead of making tips appear at random, show them for the first few times, and maybe once per several months after that.

@dcastro
Copy link
Member

dcastro commented Feb 15, 2023

I'd also note that this would mean keeping this data persisted in a database, which we haven't had the need for so far.

I wonder if this information can already be retrieved via the Slack API 🤔 Is Slack itself aware of the user's preference regarding clock formats, and can we ask them for that information?

@dcastro dcastro added this to the v1.1 milestone Sep 7, 2023
@dcastro
Copy link
Member

dcastro commented Sep 7, 2023

Update: Haven't looked too deep into this, but we may be able to achieve this with Block Kit elements: https://api.slack.com/reference/surfaces/formatting#date-formatting

Specifically, using the <!date> command:

{time} is displayed as 6:39 AM or 6:39 PM in 12-hour format. If the client is set to show 24-hour format, it is displayed as 06:39 or 18:39.

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

2 participants