Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSqlFetchedJob npgsql DateTimeOffset change for timestamptz column #385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Hangfire.PostgreSql/PostgreSqlFetchedJob.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of Hangfire.PostgreSql.
// This file is part of Hangfire.PostgreSql.
// Copyright © 2014 Frank Hommers <http://hmm.rs/Hangfire.PostgreSql>.
//
// Hangfire.PostgreSql is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -66,7 +66,7 @@ public PostgreSqlFetchedJob(
public long Id { get; }
public string Queue { get; }
public string JobId { get; }
internal DateTime? FetchedAt { get; private set; }
internal DateTimeOffset? FetchedAt { get; private set; }

public void RemoveFromQueue()
{
Expand Down Expand Up @@ -167,7 +167,7 @@ internal void ExecuteKeepAliveQueryIfRequired()
{
_storage.UseConnection(null, connection =>
{
FetchedAt = connection.ExecuteScalar<DateTime?>(updateFetchAtSql,
FetchedAt = connection.ExecuteScalar<DateTimeOffset?>(updateFetchAtSql,
new { queue = Queue, id = Id, fetchedAt = FetchedAt });
});

Expand Down