Skip to content

Commit

Permalink
add month/day to chatter log view, for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 30, 2021
1 parent 5379f1c commit da1cf9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KeyboardChatterBlocker/MainBlockerForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using System.Globalization;

namespace KeyboardChatterBlocker
{
Expand Down Expand Up @@ -69,7 +70,7 @@ public MainBlockerForm()
/// <param name="e">The key blocked event details.</param>
public void LogKeyBlocked(KeyBlockedEventArgs e)
{
ChatterLogGrid.Rows.Add(DateTime.Now.ToString("HH:mm:ss"), e.Key.ToString(), e.Time.ToString(), "[Edit]");
ChatterLogGrid.Rows.Add(DateTime.Now.ToString("MM/dd HH:mm:ss", CultureInfo.InvariantCulture), e.Key.ToString(), e.Time.ToString(), "[Edit]");
}

/// <summary>
Expand Down

0 comments on commit da1cf9e

Please sign in to comment.