Project

General

Profile

Bug #21106

In protoDUNE metadata, DAQInterface start time and stop time appear in foreign language

Added by John Freeman about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
10/10/2018
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

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 about 1 year ago

  • Target version set to artdaq_daqinterface v3_03_01

#2 Updated by John Freeman about 1 year 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()


Also available in: Atom PDF