mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Use DateTimeOffset for message timestamp.
This commit is contained in:
parent
45a9249306
commit
aad5c6a44d
@ -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)
|
||||
},
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user