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:
|
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:
|
default:
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|
Loading…
Reference in New Issue