Bug #21106
In protoDUNE metadata, DAQInterface start time and stop time appear in foreign language
Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/10/2018
Due date:
% Done:
100%
Estimated time:
Experiment:
-
Co-Assignees:
Description
Right now on the protoDUNE cluster, the DAQInterface start time and DAQInterface stop time in the metadata.txt (and thus the metadata.fcl) appear in Italian. E.g., /nfs/sw/artdaq/run_records/5140/metadata.txt:
DAQInterface start time: mer 10 ott 2018, 16.09.02, UTC DAQInterface stop time: mer 10 ott 2018, 17.11.59, UTC
The date_and_time function in DAQInterface should be made sophisticated enough to always save this in English, regardless of the computer it's running on.
History
#1 Updated by John Freeman over 2 years ago
- Target version set to artdaq_daqinterface v3_03_01
#2 Updated by John Freeman over 2 years ago
- Status changed from New to Resolved
- Assignee set to John Freeman
- % Done changed from 0 to 100
Resolved with a very simple commit, 715c817c85f553b86d57bedee8730a0beb4f76c3, which diff'd with the previous commit looks as follows:
- return Popen("date", shell=True, stdout=subprocess.PIPE).stdout.readlines()[0].strip() + return Popen("LC_ALL=\"en_US.UTF-8\" date", shell=True, stdout=subprocess.PIPE).stdout.readlines()[0].strip()