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
No related tags found
No related merge requests found
...@@ -28,9 +28,9 @@ namespace Shared.EventLog { ...@@ -28,9 +28,9 @@ namespace Shared.EventLog {
eventLog.Clear(); eventLog.Clear();
startTime = DateTime.Now; 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 { ...@@ -38,8 +38,8 @@ namespace Shared.EventLog {
public void StopLogging() { public void StopLogging() {
if (isLogging) { if (isLogging) {
DateTime endTime = DateTime.Now; DateTime endTime = DateTime.Now;
eventLog.Add("end-time", endTime.ToString("hh:mm:ss")); eventLog.Add("end-time", endTime.ToString("HH:mm:ss"));
eventLog.WriteToFile(outputDirectory.Value, logFileName.Value + "." + endTime.ToString("MM-dd-yyy-hhmmss") + ".csv"); eventLog.WriteToFile(outputDirectory.Value, logFileName.Value + "." + endTime.ToString("MM-dd-yyy-HHmmss") + ".csv");
eventLog.Clear(); eventLog.Clear();
isLogging = false; isLogging = false;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "com.futuretech.shared", "name": "com.futuretech.shared",
"displayName": "FutureTech Shared", "displayName": "FutureTech Shared",
"description": "Contains shared items such as the Scriptable Variables.", "description": "Contains shared items such as the Scriptable Variables.",
"version": "0.1.20", "version": "0.1.21",
"unity": "2019.1", "unity": "2019.1",
"license": "MIT", "license": "MIT",
"repository": { "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