Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.63k stars 405 forks source link

CSV result missed timestamps by 5 minutes #5479

Closed accidentalyadmin closed 10 months ago

accidentalyadmin commented 1 year ago

Describe the bug

Export to CSV may or will result in missed timestamps by 5 minutes both at the start and end time.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Graphs' tab and select the graph that you need to export to CSV.

  2. Select precisely the start time and end time, eg. 08:00 AM start time and 18:00 PM end time.

  3. Click 'export to CSV' button on the right side of the graph, download and save the CSV file.

  4. Open the CSV file.

Expected behavior

Notice at the 'Start date' column will say "yyyy-mm-dd 08:05:00" and the 'End date' column will say "yyyy-mm-dd 18:05:00".

Screenshots

IMG-20230905-WA0003

TheWitness commented 1 year ago

Confirmed. it's totally messed up. Have to find out how this is happening. Session related for sure.

TheWitness commented 10 months ago

@accidentalyadmin, I'm just getting back to this one. We need to do some diagnostics. Is this always repeatable, or only from time to time? Can you bring up the browser debug window, and go to the Network tab. From there, select the Download link and capture the URL that is sent back to Cacti. Post that here.

TheWitness commented 10 months ago

This has been fixed by @xmacan . Can you please test @accidentalyadmin?