Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  07 Aug 2024, Lukas Gerritzen, Bug Report, File name bug in csv export 
    Reply  07 Aug 2024, Stefan Ritt, Bug Report, File name bug in csv export 
       Reply  07 Aug 2024, Lukas Gerritzen, Bug Report, File name bug in csv export 
          Reply  07 Aug 2024, Stefan Ritt, Bug Report, File name bug in csv export 
Message ID: 2798     Entry time: 07 Aug 2024     Reply to this: 2799
Author: Lukas Gerritzen 
Topic: Bug Report 
Subject: File name bug in csv export 
When I export data from a history plot, I get nonsensical filenames. For example, for data from today, I got "Xenon-Vacuum-20247107-152815-20247107-160032.csv".
The month shouldn't be 71 but rather 08. The problem is that in the code it's generated as
("0" + leftDate.getUTCMonth() + 1).slice(-2)
The first '+' is a string concatenation, and so is the second. It should be an addition though. A possible fix is to add parentheses around the addition:
("0" + (leftDate.getUTCMonth() + 1)).slice(-2)
ELOG V3.1.4-2e1708b5