6026: Improve timezones on org settings sent emails #6043
+54
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What github issue is this PR for, if any?
Resolves #6026
What changed, and why?
I added the
Users::Timezone.to_user_timezone
helper which takes a time object/formatted string and it will adjust it to the current user's local timezone.Opening it as Draft as it's work in progress. If you can please confirm that I'm on the right path.
How is this tested? (please write tests!) 💖💪
You can find a couple of tests under
time_zone_spec.rb
, just partial for now, need to add more related to handling odd arguments.To run tests:
I am still new to testing, so please let me know if any changes required; I'm more than happy to adjust it.
Screenshots please :)
Run your local server and take a screenshot of your work! Try to include the URL of the page as well as the contents of the page.
Feelings gif (optional)
What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:
![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)