From 6229fd1d7c2b78f37395f022b7f1959f5cced3c1 Mon Sep 17 00:00:00 2001 From: Johannes Opper Date: Sun, 9 Oct 2022 00:18:17 +0200 Subject: [PATCH] Use UTC when encoding datetime values into cursor. --- CHANGELOG.md | 7 +++- lib/rails_cursor_pagination/cursor.rb | 13 ++++++- spec/rails_cursor_pagination/cursor_spec.rb | 39 +++++++++++++++++++ .../rails_cursor_pagination/paginator_spec.rb | 2 +- spec/spec_helper.rb | 5 +++ 5 files changed, 62 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e55d44..bb1aaf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), These are the latest changes on the project's `master` branch that have not yet been released. +### Fixed +- Use UTC when encoding datetime values into cursor, therefore playing nicely with rails' default behaviour of storing UTC in the database. +