Skip to content

Commit

Permalink
show date and time
Browse files Browse the repository at this point in the history
Both ToShortDateString and ToShortTimeString are used to keep locale.
  • Loading branch information
schoerg authored Nov 9, 2018
1 parent fa36f5f commit 01729f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion View.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Message
public DateTime? Submitted { get; set; }
public DateTime? Modified { get; set; } // When any attachment was last modified
public DateTime? Date { get { return Received ?? Submitted; } }
public string DisplayDate { get { return Date != null ? ((DateTime)Date).ToShortDateString() : "<unknown>"; } }
public string DisplayDate { get { return Date != null ? ((DateTime)Date).ToShortDateString() + " " + ((DateTime)Date).ToShortTimeString() : "<unknown>"; } }
public NID Nid { get; set; }
public BodyType NativeBody { get; set; }
public string Body { get; set; }
Expand Down

0 comments on commit 01729f3

Please sign in to comment.