Skip to content

Commit 5aecb86

Browse files
TORRENS_PHD_ACCOUNTTORRENS_PHD_ACCOUNT
authored andcommitted
fix for unix ms column added to end despite the unix timestamps being prepended for each row
1 parent 4567c5a commit 5aecb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSVWriter/CSVWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public bool Initialize() {
4242
eventWriter = new StreamWriter(new FileStream(filePath, FileMode.Create), Encoding.UTF8);
4343
// Header Line, if any columns are added to `columns`
4444
if (columns.Count > 0) {
45-
if (writeUnixTime) columns.Add("unix_ms");
45+
if (writeUnixTime) columns.Insert(0,"unix_ms");
4646
eventWriter.WriteLine(String.Join(',', columns));
4747
}
4848

0 commit comments

Comments
 (0)