console
console copied to clipboard
🚀 Improvement: Use Local Time for Premium Support Timings
🔖 Feature description
Currently the timings for premium support are listed in UTC time format which may not be easy to convert to local time. Using a user's local standard time would be much easier to understand the exact timings for the support.
Current -
|
|
Suggestion -
![]() |
![]() |
🎤 Pitch
It would make it easier to understand support timings.
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
@ItzNotABug. thanks for creating this issue! 🙏🏼 Let me bring it up to the team.
If we move forward with this, would you like to work on making the change?
Go the green light for this so I'm going to open this up for contributors.
@ItzNotABug. thanks for creating this issue! 🙏🏼 Let me bring it up to the team.
If we move forward with this, would you like to work on making the change?
@stnguyen90 I could definitely give this a try.
I see these two pages here -
- https://github.com/appwrite/console/blob/main/src/routes/console/supportWizard.svelte
- https://github.com/appwrite/console/blob/main/src/lib/components/support.svelte
I assume we'd use Date()
based logic but should that go in the same page's <script>
tag or somewhere else?
@ItzNotABug, yep! This is a little different since it's a day/time range, but maybe some of the following will help you in formatting it right:
https://github.com/appwrite/console/blob/0700c5cc45c1093a96aa279dfea815a64ac549f5/src/routes/console/project-%5Bproject%5D/messaging/wizard/step3.svelte#L33-L41
We have various helpers here too.
Hey @stnguyen90, I've attempted to raise a PR, however I wasn't sure of adding a test for the used date methods as I couldn't think of testing the expected local time against a set of expected results. Let me know how to proceed with the PR.
Thanks.