Skip to content

Commit

Permalink
Changed Output Filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Penny79 committed Jun 12, 2018
1 parent 34459b9 commit 14711ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HkwgConverter/Core/OutboundConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ private void WriteCsvFile(Workflow workflow, List<CsvLineItem> newData)
sb.Append(";");
sb.AppendLine(newData[i].FlexNegDemand.ToString("0.00", CultureInfo.InvariantCulture));
}

var targetFile = Path.Combine(this.configData.OutboundDropFolder, outputCsvFilePrefix + workflow.CsvFile.Replace("Cottbus_FlexDayAhead_", ""));

var targetFileName = outputCsvFilePrefix + workflow.DeliveryDay.ToString("yyyyMMdd") + "_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".csv";
var targetFile = Path.Combine(this.configData.OutboundDropFolder, targetFileName);

File.WriteAllText(targetFile, sb.ToString());

Expand Down

0 comments on commit 14711ef

Please sign in to comment.