Skip to content

Commit ab5b2ea

Browse files
committed
Fixed DateTime being local instead UTC
* Closes #64
1 parent 0f1cdb3 commit ab5b2ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XRIT/Tools/LLTools.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public static String BytesToString(long byteCount) {
6262

6363
public static DateTime UnixTimeStampToDateTime(long unixTimeStamp) {
6464
// Unix timestamp is seconds past epoch
65-
System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
66-
dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).ToLocalTime();
65+
var dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
66+
dtDateTime = dtDateTime.AddSeconds(unixTimeStamp);
6767
return dtDateTime;
6868
}
6969

0 commit comments

Comments
 (0)