fix display time in correct timezone
This commit is contained in:
parent
69230f458f
commit
c460fcca9f
|
@ -11,7 +11,7 @@ namespace PCUT.Converters
|
|||
{
|
||||
case DateTime timeValue:
|
||||
{
|
||||
return $"[{timeValue.ToString("yyyy-MM-dd HH:mm:ss.fff K")}]";
|
||||
return $"[{TimeZoneInfo.ConvertTime(timeValue, TimeZoneInfo.Local).ToString("yyyy-MM-dd HH:mm:ss")}]";
|
||||
}
|
||||
default:
|
||||
return string.Empty;
|
||||
|
|
Loading…
Reference in New Issue