Skip to content

Commit 577f271

Browse files
committed
unify datetime timezone handling
1 parent 1a3503d commit 577f271

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

osu.NET/Helpers/OsuJsonSerializer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ internal static class OsuJsonSerializer
1414
public static JsonSerializer Create()
1515
=> JsonSerializer.Create(new()
1616
{
17+
//
18+
// Unifies the parsing of timezones, causing those with a "+00:00" returned from the API to not be converted into the local timezones by NSJ
19+
//
20+
DateTimeZoneHandling = DateTimeZoneHandling.Utc,
21+
1722
Converters = [
1823
new EnumConverter(),
1924

0 commit comments

Comments
 (0)