canvas-lms/gems/bookmarked_collection
Jeremy Stanley dfed7a0371 fix issues using timestamp as a pagination bookmark
when a timestamp is round-tripped through a page parameter,
it comes back as a string which was failing to line up with
the bookmarked row for one of two reasons:
 1. the date string was in local time (with a UTC offset
    that the database was ignoring)
 2. the date string truncated the fractional seconds part

solve both issues by explicitly converting timestamps to
UTC and preserving fractional seconds

test plan:
 - have two courses in different shards selected in your
   calendar, having assignments with due dates in both
   (at least 50 such assignments in one of the courses)
 - all the assignments should show up on your calendar
   (just once each)

fixes LS-2156

flag = none

Change-Id: Ia2010e08653520923e1c3f05d17697e1a3cd8826
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/263546
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2021-04-28 20:47:28 +00:00
..
lib fix issues using timestamp as a pagination bookmark 2021-04-28 20:47:28 +00:00
spec fix issues using timestamp as a pagination bookmark 2021-04-28 20:47:28 +00:00
Gemfile add frozen_string_literal comment to engines and gems 2021-03-30 18:14:15 +00:00
Rakefile add frozen_string_literal comment to engines and gems 2021-03-30 18:14:15 +00:00
bookmarked_collection.gemspec add frozen_string_literal comment to engines and gems 2021-03-30 18:14:15 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00