Skip to content

Commit

Permalink
chore: fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson-tomo committed Oct 27, 2024
1 parent 539c133 commit 07818cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,15 @@ workflows:
- check-compilation-warnings
- check-code-formatting
- tests-dotnet:
name: dotnet-3.1-nightly
name: dotnet-6.0-nightly
influxdb-image: "quay.io/influxdb/influxdb:nightly"
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:3.1"
- tests-dotnet:
name: dotnet-3.1
dotnet-image: "mcr.microsoft.com/dotnet/core/sdk:3.1"
dotnet-image: "mcr.microsoft.com/dotnet/sdk:6.0"
- tests-dotnet:
name: dotnet-5.0
code-coverage-report: true
dotnet-image: "mcr.microsoft.com/dotnet/sdk:5.0"
- tests-dotnet:
name: dotnet-6.0
code-coverage-report: true
dotnet-image: "mcr.microsoft.com/dotnet/sdk:6.0"
- tests-dotnet:
name: dotnet-7.0
Expand All @@ -231,10 +228,8 @@ workflows:
requires:
- check-compilation-warnings
- check-code-formatting
- dotnet-3.1-nightly
- dotnet-3.1
- dotnet-5.0
- dotnet-6.0
- dotnet-6.0-nightly
- dotnet-7.0
- dotnet-windows
filters:
Expand Down
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 07818cf

Please sign in to comment.