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

feat: add timestamp_to_datetime jinja template filter #5303

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

matiasb
Copy link
Contributor

@matiasb matiasb commented Nov 27, 2024

Related to https://github.com/grafana/support-escalations/issues/13670

Given a payload like this:

{  
    "Sometime": "1730893740"  
}

the following template expression:

{{ payload.Sometime | int | timestamp_to_datetime }}

will render as:

2024-11-06 11:49:00

@matiasb matiasb added the release:patch PR will be added to "Other Changes" section of release notes label Nov 27, 2024
@matiasb matiasb force-pushed the matiasb/timestamp_to_datetime-jinja-filter branch from 916e47f to fa9a7a4 Compare November 27, 2024 16:53
@matiasb matiasb marked this pull request as ready for review November 27, 2024 17:13
@matiasb matiasb requested review from a team as code owners November 27, 2024 17:13
@joeyorlando joeyorlando added this pull request to the merge queue Nov 28, 2024
Merged via the queue into dev with commit 6a65ddd Nov 28, 2024
26 checks passed
@joeyorlando joeyorlando deleted the matiasb/timestamp_to_datetime-jinja-filter branch November 28, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:patch PR will be added to "Other Changes" section of release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants