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

MsSql outbox Isn't operating in UTC Time #2194

Closed
preardon opened this issue Jul 19, 2022 · 3 comments
Closed

MsSql outbox Isn't operating in UTC Time #2194

preardon opened this issue Jul 19, 2022 · 3 comments
Assignees

Comments

@preardon
Copy link
Member

MsSql outbox

var pagingSqlFormat = "SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY Timestamp ASC) AS NUMBER, * FROM {0} WHERE DISPATCHED IS NULL) AS TBL WHERE TIMESTAMP < DATEADD(millisecond, -@OutStandingSince, getdate()) AND NUMBER BETWEEN ((@PageNumber-1)*@PageSize+1) AND (@PageNumber*@PageSize) ORDER BY Timestamp ASC";

var pagingSqlFormat = "SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY Timestamp DESC) AS NUMBER, * FROM {0}) AS TBL WHERE DISPATCHED IS NOT NULL AND DISPATCHED < DATEADD(millisecond, @OutStandingSince, getdate()) AND NUMBER BETWEEN ((@PageNumber-1)*@PageSize+1) AND (@PageNumber*@PageSize) ORDER BY Timestamp DESC";

catalintoma pushed a commit to catalintoma/Brighter that referenced this issue Jul 19, 2022
…is the timezone used when storing messages
catalintoma pushed a commit to catalintoma/Brighter that referenced this issue Jul 20, 2022
…is the timezone used when storing messages
catalintoma added a commit to catalintoma/Brighter that referenced this issue Jul 20, 2022
preardon pushed a commit that referenced this issue Jul 20, 2022
#2196)

* #2194 [CT] Using UTC in MSSQL / MYSQL outbox, as this is the timezone used when storing messages

* #2194 [CT] Using built-in MySQL functions, imposing outbox dates to be stored in UTC

Co-authored-by: Catalin Toma <[email protected]>
@iancooper
Copy link
Member

@preardon is this done?

@preardon
Copy link
Member Author

@iancooper

@catalintoma fixed this for us

@iancooper
Copy link
Member

Thanks @catalintoma will close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants