diff --git a/osu.Game/Online/Chat/Display/ChatLine.cs b/osu.Game/Online/Chat/Display/ChatLine.cs index 5032ff0b9f..92146be0b2 100644 --- a/osu.Game/Online/Chat/Display/ChatLine.cs +++ b/osu.Game/Online/Chat/Display/ChatLine.cs @@ -43,7 +43,7 @@ namespace osu.Game.Online.Chat.Display { new SpriteText { - Text = Message.Timestamp.ToLocalTime().ToLongTimeString(), + Text = Message.Timestamp.LocalDateTime.ToLongTimeString(), TextSize = text_size, Colour = new Color4(128, 128, 128, 255) }, diff --git a/osu.Game/Online/Chat/Message.cs b/osu.Game/Online/Chat/Message.cs index 5b344da22c..9fb9668f64 100644 --- a/osu.Game/Online/Chat/Message.cs +++ b/osu.Game/Online/Chat/Message.cs @@ -18,7 +18,7 @@ namespace osu.Game.Online.Chat public int ChannelId; [JsonProperty(@"timestamp")] - public DateTime Timestamp; + public DateTimeOffset Timestamp; [JsonProperty(@"content")] public string Content;