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

CSV report is getting generated in the actual machine timezone in stead of adhering to advanced settings timezone #29463

Closed
rashmivkulkarni opened this issue Jan 28, 2019 · 5 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@rashmivkulkarni
Copy link
Contributor

rashmivkulkarni commented Jan 28, 2019

Kibana version: 6.6.0 /master

Bug description: The timestamp on CSV reports being generated in a wrong timezone. To reproduce -
Here are the time zones:

  • machine timezone: PST
  • Kibana advanced settings timezone: UTC

The CSV report is generated in PST instead of UTC - Which I think is a bug .

Attached is the generated CSV.
Report.csv.txt

cc @aliciascott @legrego @calebchaney

@rashmivkulkarni rashmivkulkarni added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jan 28, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@tsullivan tsullivan added the bug Fixes for quality problems that affect the customer experience label Jan 29, 2019
@tsullivan tsullivan self-assigned this Jan 30, 2019
@tsullivan
Copy link
Member

looking into this now

@tsullivan
Copy link
Member

I can repro with this test data:

PUT my_index
{
  "mappings": {
    "_doc": {
      "properties": {
        "date": {
          "type": "date" 
        },
        "name": {
          "type": "keyword" 
        }
      }
    }
  }
}

PUT my_index/_doc/1
{
  "date": "2019-01-01",
  "name": "Kaiden"
} 

PUT my_index/_doc/2
{
  "date": 1546300800001,
  "name": "Chance"
} 

PUT my_index/_doc/3
{
  "date": "2019-01-01T12:10:30Z",
  "name": "Grayson"
} 

GET my_index/_search
{
  "sort": { "date": "asc"} 
}

@tsullivan
Copy link
Member

Relevant:
[1] elastic/elasticsearch#30831
[2] #27310

@tsullivan
Copy link
Member

PR in the works: #29781

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants