-
-
Notifications
You must be signed in to change notification settings - Fork 427
Closed
Labels
bugUndesired behaviourUndesired behaviourenhancementGeneral tag for an enhancementGeneral tag for an enhancementimport/exportRelated to Import and Export of Template and PackagesRelated to Import and Export of Template and PackagesresolvedA fixed issueA fixed issue
Milestone
Description
Describe the bug
Graph CSV export all data as NaA with wrong date range if browser timezone is different with web server
To Reproduce
- Configure web server timezone as EST(-05:00), Browser side timezone is CST(+08:00)
- Create a new graph, ensure its valid data timerange is less than 13 hours
- Access Graphs-->Preview
- Select "Last 4 Hours"
- Compare params in href of "csv export", and timespans
layout.js -->getTimestampFromDate() convert timespan date1/date2 to timestamp with browser local timezone - Click "csv export" icon, and check csv file
"Start Date","2020-11-23 10:37:00"
"End Date","2020-11-23 14:37:00"
.......
"2020-11-23 15:04:00","NaN","NaN"
Screenshots
Additional context
Maybe, global_session.php can output web server timezone info as JS variables
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourenhancementGeneral tag for an enhancementGeneral tag for an enhancementimport/exportRelated to Import and Export of Template and PackagesRelated to Import and Export of Template and PackagesresolvedA fixed issueA fixed issue
