-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support different time format preferences for the user #358
Comments
Hi @mickmister i have recently started learning to contribute to open source in github, i am a beginner and this issue seems very interesting to me as my first contribution. so if no one is assigned to do this task can you assign this task to me ,so that i can start contributing to this. Till Now I have just commited my projects only so if this task takes time please don't mind me, i will give my all to complete this asap. |
Hi, @mickmister can I work on this task if it's still available? |
@THEBOSS0369 Just for confirmation, are you working on this task? |
Hey @raghavaggarwal2308 No sir ,i ain't working on this issue I carelessly asked for assignment even though I didn't knew this was in go(I have never coded in go). Someone deserving can work on this issue . Apologies for my stupid assignment request 😔 |
@Tihomir-N Yes, it's all yours. Let me know if you need any assistance. |
@wiggin77 Hi, I need some more details about this story. I see that you are already using the current time zone when preparing the context in |
@Tihomir-N. The original submitter was the plugin maintainer but is unavailable for a while. I believe what he is looking for is to display event notifications, reminder, etc that are posted as a DM to users in the format that users have set in their profile. This setting can be fetched with the API linked in description for this ticket --> To determine a user's time display preference, we can use the plugin API to get the user's preferences, then find the one with Category: model.PreferenceCategoryDisplaySettings and Name: model.PreferenceNameUseMilitaryTime The task is a matter of finding the places where this plugin generates a direct message to users, look up the user preference, and format the event timestamp accordingly. There is a specific API to send a direct message - searching the code for that would likely find the places that need this change. I doubt there are many. |
Many of the posts made by this plugin have a reference to a start time of an event or events. For any post we send directly to a user, we can form the time string in a way that this user prefers the time to be shown. The plugin can also be given a default value, to use for any public posts.
To determine a user's time display preference, we can use the plugin API to get the user's preferences, then find the one with
Category: model.PreferenceCategoryDisplaySettings
andName: model.PreferenceNameUseMilitaryTime
The text was updated successfully, but these errors were encountered: