question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

api/v1/dashboard API response time format is wrong

See original GitHub issue

I found the Modified column for welcome page is messaged up, which was caused by the time format from api/v1/dashboard API. For example if i crated a dashboard at 2020-07-13 19:09:54.991076 PSD time, API responded as changed_on: "2020-07-13T19:09:54.991076+00:00". Then front-end js will parse it as Mon Jul 13 2020 12:09:54 GMT-0700 (Pacific Daylight Time)

Compare the welcome page vs dashboard list view:

Expected results

Screen Shot 2020-07-13 at 7 10 41 PM

Actual results

Screen Shot 2020-07-13 at 7 10 30 PM

Environment

(please complete the following information):

latest master branch

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

@villebro I think this issue is 0.37 blocker.

@dpgaspar @etr2460

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
etr2460commented, Jul 14, 2020

@graceguo-supercat, @dpgaspar: our webserver and metadata databases are on UTC, not Pacific Time.

0reactions
dpgasparcommented, Jul 15, 2020

fixed on master

Read more comments on GitHub >

github_iconTop Results From Across the Web

api/v1/dashboard API response time format is wrong #10307
I found the Modified column for welcome page is messaged up, which was caused by the time format from api/v1/dashboard API.
Read more >
Irregular Behavior for POST /api/v1/dashboards/import/bulk
I have a dashboard I want to import into Sisense. This dashboard has no issues being imported on one environment but fails to...
Read more >
Errors - Meraki-Dashboard-API-v1-Documentation
Error responses from the API generally use standard HTTP status codes. ... error messages will be included in the response in JSON format,...
Read more >
Data Dashboard API Usage Documentation
Response Format. The API returns a response in JSON format, based on information supplied in the body of the request: The JSON response...
Read more >
HTTP API - Prometheus.io
The API response format is JSON. Every successful API request returns a 2xx status code. Invalid requests that reach the API handlers return...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found