-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Canvas] Display timestamp in the browser's timezone #33959
Comments
A comment related to this issue was posted to the With table:
This will query ES as expected, and the returned data will have the correct UTC offset applied to timestamps:
When With plot:
The same response comes back, this time converted to an epoch timestamp, and passed to flot charts. It appears that flot is not actually converting to the timezone set in advanced settings, though this was a bit harder for me to test based on how the x axis values were displayed. Testing the same query with the |
Is there no update on this? |
Is there an ETA for this fix? |
Any news on this? |
Any news? |
Any news on this? |
Any new issue - Moment.js is outdated and Kibana should not use outdated libraries? |
Closing this for the time being as we are currently not prioritizing Canvas enhancements. We can reopen this if it becomes such a nuisance that Canvas is unusable. |
Describe the feature:
Make it possible within canvas to display timestamp in the browser’s timezone. I see the local() function in the moment.js docs, but I don’t think there is a way to access it in canvas.
Describe a specific use case for the feature:
Display timestamp in the browser's timezone.
When I pass a value to formatdate it is always converted to UTC or a hard coded timezone. Here is an example:
essql
query="SELECT max("@timestamp") time from "*"
WHERE "@timestamp" > NOW() - INTERVAL 5 MINUTES
AND "@timestamp" <= NOW()"
| markdown {getCell time | formatdate format="dddd, MMMM Do YYYY, h:mm:ss z"}
font={font family="'Open Sans', Helvetica, Arial, sans-serif" size=14 align="center" color="#FFFFFF" weight="normal" underline=false italic=false}
| render
The text was updated successfully, but these errors were encountered: