Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Using the DebuggerDisplayAttribute to show the UTC and Local time of a DateTime property.

View Issue.cs
1 2 3 4 5 6 7 8 9 10 11
 
public class Issue
{
public Issue()
{
Created = DateTime.UtcNow;
}
 
[DebuggerDisplay("Local = {Created.ToLocalTime()}, UTC = {Created}")]
public DateTime Created { get; private set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.