From e5983a9ec1dda01784ae0ff2e2807832023062c7 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Thu, 2 Oct 2025 19:02:28 +0200 Subject: [PATCH] Add DateOnly and TimeOnly to sandbox Added in .NET 6 --- RELEASE-NOTES.md | 3 ++- Robust.Shared/ContentPack/Sandbox.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 68eda848c..b555aeff0 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -39,7 +39,8 @@ END TEMPLATE--> ### New features -*None yet* +* Sandbox: + * Added `System.DateOnly` and `System.TimeOnly`. ### Bugfixes diff --git a/Robust.Shared/ContentPack/Sandbox.yml b/Robust.Shared/ContentPack/Sandbox.yml index 9736b815a..66664b8bc 100644 --- a/Robust.Shared/ContentPack/Sandbox.yml +++ b/Robust.Shared/ContentPack/Sandbox.yml @@ -1093,6 +1093,7 @@ Types: - "string ToHexString(System.ReadOnlySpan`1)" Converter`2: { All: True } # Delegate + DateOnly: { all: True } DateTime: { All: True } DateTimeKind: { } # Enum DateTimeOffset: { All: True } @@ -1425,6 +1426,7 @@ Types: - "void CopyTo(int, char[], int, int)" StringComparison: { } # Enum StringSplitOptions: { } # Enum + TimeOnly: { all: True } TimeSpan: { All: True } Type: # COM, marshalling, interop, etc... stuff omitted.