1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:07:25 +08:00

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
{
Text = Message.Timestamp.ToLocalTime().ToLongTimeString(),
Text = Message.Timestamp.LocalDateTime.ToLongTimeString(),
TextSize = text_size,
Colour = new Color4(128, 128, 128, 255)
},

View File

@ -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;