Skip to content

Commit

Permalink
Update PointData.Builder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson-tomo committed Oct 27, 2024
1 parent 539c133 commit 5466fed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Client/Writes/PointData.Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ public Builder Timestamp(TimeSpan timestamp, WritePrecision timeUnit)
/// <returns></returns>
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));
}
Expand Down

0 comments on commit 5466fed

Please sign in to comment.