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

Jinja2 template helper filter datetimeformat_as_timezone #3426

Merged
merged 8 commits into from
Dec 4, 2023
Merged

Jinja2 template helper filter datetimeformat_as_timezone #3426

merged 8 commits into from
Dec 4, 2023

Conversation

jorgeav
Copy link
Contributor

@jorgeav jorgeav commented Nov 26, 2023

What this PR does

Add an additional jinja2 template helper filter to convert a timezone aware datetime to a different timezone.

Which issue(s) this PR fixes

Alert payloads that originate from different time zones may include timestamps having a local time offset. This filter enables standardization of timestamp timezones.

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@jorgeav jorgeav requested a review from a team as a code owner November 26, 2023 00:58
@jorgeav jorgeav requested review from a team November 26, 2023 00:58
@joeyorlando
Copy link
Contributor

hi @jorgeav, thanks for another jinja related contribution! Do you mind adding a note to the CHANGELOG.md about this and I'll go ahead and get this approved/merged-in. Thanks 🙂

auto-merge was automatically disabled December 3, 2023 02:12

Head branch was pushed to by a user without write access

@joeyorlando joeyorlando merged commit 4df8985 into grafana:dev Dec 4, 2023
17 of 18 checks passed
brojd pushed a commit that referenced this pull request Sep 18, 2024
# What this PR does
Add an additional jinja2 template helper filter to convert a timezone
aware datetime to a different timezone.

## Which issue(s) this PR fixes
Alert payloads that originate from different time zones may include
timestamps having a local time offset. This filter enables
standardization of timestamp timezones.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

---------

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
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

Successfully merging this pull request may close these issues.

2 participants