diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index fe858258..05bec44e 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -21,7 +21,8 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -permissions: {} +permissions: + contents: read defaults: run: diff --git a/lib/VERSION b/lib/VERSION index fcbb5375..bbde4bee 100644 --- a/lib/VERSION +++ b/lib/VERSION @@ -1 +1 @@ -0.8.4 \ No newline at end of file +0.8.5 \ No newline at end of file diff --git a/lib/errors/wrmse/Wrmse.cs b/lib/errors/wrmse/Wrmse.cs index a70cc88f..1f85134c 100644 --- a/lib/errors/wrmse/Wrmse.cs +++ b/lib/errors/wrmse/Wrmse.cs @@ -176,7 +176,8 @@ public sealed class Wrmse : AbstractBase [MethodImpl(MethodImplOptions.AggressiveInlining)] public TValue Update(double actual, double predicted, double weight, bool isNew = true) { - return Update(new TValue(DateTime.MinValue, actual), new TValue(DateTime.MinValue, predicted), weight, isNew); + var now = DateTime.UtcNow; + return Update(new TValue(now, actual), new TValue(now, predicted), weight, isNew); } ///