From 5466fedd191fa1d33535fe8a83cc2fa528831f20 Mon Sep 17 00:00:00 2001 From: James Thompson Date: Sun, 27 Oct 2024 17:25:34 +1100 Subject: [PATCH] Update PointData.Builder.cs --- Client/Writes/PointData.Builder.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Client/Writes/PointData.Builder.cs b/Client/Writes/PointData.Builder.cs index 4815c8e04..c8e453868 100644 --- a/Client/Writes/PointData.Builder.cs +++ b/Client/Writes/PointData.Builder.cs @@ -212,7 +212,11 @@ public Builder Timestamp(TimeSpan timestamp, WritePrecision timeUnit) /// public Builder Timestamp(DateTime timestamp, WritePrecision timeUnit) { - if (timestamp != null && timestamp.Kind != DateTimeKind.Utc) + if ( +#if !NETSTANDARD + timestamp != null && +#endif + timestamp.Kind != DateTimeKind.Utc) { throw new ArgumentException("Timestamps must be specified as UTC", nameof(timestamp)); }