Skip to content
Snippets Groups Projects
Commit c77082e7 authored by Heine, Eric R's avatar Heine, Eric R
Browse files

The event log now uses 24-hour timestamps for the start and end times and the filename.

parent 55670b9f
No related branches found
Tags 0.1.21
No related merge requests found
......@@ -28,9 +28,9 @@ namespace Shared.EventLog {
eventLog.Clear();
startTime = DateTime.Now;
eventLog.Add("start-time", startTime.ToString("hh:mm:ss"));
eventLog.Add("start-time", startTime.ToString("HH:mm:ss"));
loggingStarted.Raise();
loggingStarted?.Raise();
}
//--------------------------------------------------------------------------
......@@ -38,8 +38,8 @@ namespace Shared.EventLog {
public void StopLogging() {
if (isLogging) {
DateTime endTime = DateTime.Now;
eventLog.Add("end-time", endTime.ToString("hh:mm:ss"));
eventLog.WriteToFile(outputDirectory.Value, logFileName.Value + "." + endTime.ToString("MM-dd-yyy-hhmmss") + ".csv");
eventLog.Add("end-time", endTime.ToString("HH:mm:ss"));
eventLog.WriteToFile(outputDirectory.Value, logFileName.Value + "." + endTime.ToString("MM-dd-yyy-HHmmss") + ".csv");
eventLog.Clear();
isLogging = false;
}
......
......@@ -2,7 +2,7 @@
"name": "com.futuretech.shared",
"displayName": "FutureTech Shared",
"description": "Contains shared items such as the Scriptable Variables.",
"version": "0.1.20",
"version": "0.1.21",
"unity": "2019.1",
"license": "MIT",
"repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment