Use DateTimeOffset for message timestamp.

This commit is contained in:
Huo Yaoyuan 2016-10-13 21:42:51 +08:00
parent 45a9249306
commit aad5c6a44d
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Online.Chat.Display
{ {
new SpriteText new SpriteText
{ {
Text = Message.Timestamp.ToLocalTime().ToLongTimeString(), Text = Message.Timestamp.LocalDateTime.ToLongTimeString(),
TextSize = text_size, TextSize = text_size,
Colour = new Color4(128, 128, 128, 255) Colour = new Color4(128, 128, 128, 255)
}, },

View File

@ -18,7 +18,7 @@ namespace osu.Game.Online.Chat
public int ChannelId; public int ChannelId;
[JsonProperty(@"timestamp")] [JsonProperty(@"timestamp")]
public DateTime Timestamp; public DateTimeOffset Timestamp;
[JsonProperty(@"content")] [JsonProperty(@"content")]
public string Content; public string Content;