mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 20:47:24 +09: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
|
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)
|
||||||
},
|
},
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user