Skip to content

Commit 001a14d

Browse files
LauraLaureusTrolldemorted
authored andcommitted
null timestamp
1 parent 2df2c79 commit 001a14d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Signal-Windows/Utils.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ public static PageStyle GetViewStyle(Size s)
154154

155155
public static string GetTimestamp(long timestamp)
156156
{
157+
if (timestamp == 0) return String.Empty;
158+
157159
DateTimeOffset dateTimeOffset = DateTimeOffset.FromUnixTimeSeconds(timestamp / 1000);
158160
DateTime dt = dateTimeOffset.UtcDateTime.ToLocalTime();
159161
return GetTimestamp(dt);

0 commit comments

Comments
 (0)