docbrown/spec
Daniel Uber e3ebc623da
Compare the utc offset from the timestamp, not now (#15256)
Time Zones are political things, and move. The timezone database knows
this, and correctly interprets times as they would have been at the
time.

For example, when the Time zone is Africa/Monrovia, the offset now is
0, but the offset in 1970 was -44.5 minutes, so Time.zone.at(0) is Dec
31st, 1969, 23:15:30 and not Jan 1st, 1970 00:00:00.

Prevent this spec from randomly failing based on Zonebie's selected
timezone by comparing the offset _then_ against UTC, and predicting
whether the 60's have ended yet.
2021-11-01 15:49:35 -05:00
..
black_box
components/admin/users Refactor Admin Member Detail view - Tools section (#14283) 2021-08-17 18:55:53 +02:00
controllers/concerns
decorators Theming changes part 1: Rename default and night_theme (#15176) 2021-10-28 07:55:46 -04:00
factories Theming changes part 1: Rename default and night_theme (#15176) 2021-10-28 07:55:46 -04:00
fixtures
generator
helpers Markdown editor toolbar (#14876) 2021-10-19 09:22:54 +01:00
initializers Clean up feed-related code (#14707) 2021-09-17 09:23:32 +07:00
lib Forem passport (cont) (#14759) 2021-09-30 06:47:45 -06:00
liquid_tags Rubocop fixes (#14868) 2021-09-30 13:22:09 -04:00
mailers Created the Forem creator confirmation email template (#14659) 2021-10-21 14:56:09 -04:00
models Theming changes part 1: Rename default and night_theme (#15176) 2021-10-28 07:55:46 -04:00
policies Fix organization's admin unable to view an article's stats (#14767) 2021-09-21 16:05:34 +01:00
queries Adds validations to avoid creating unnecessary PNs (#14621) 2021-08-31 15:00:30 -06:00
refinements
requests Creator Onboarding: Creator Setup View (#14728) 2021-11-01 15:50:08 -04:00
routing
serializers/search
services [Small Win] Assign 'trusted' role when user updated to Admin or SuperAdmin (#15215) 2021-10-28 15:28:25 -04:00
support Asynchronously detect image aspect ratios and apply proper attributes (#15170) 2021-10-26 13:39:25 -07:00
system Only enable user invitations page when SMTP is enabled (#15219) 2021-10-29 17:41:30 +02:00
tasks Create Default Nav Links In New Forem (RFC #237) (#14345) 2021-08-02 12:52:36 -04:00
uploaders ✂✂✂ Remove events (#15062) 2021-10-15 09:31:08 -04:00
view_objects
views Compare the utc offset from the timestamp, not now (#15256) 2021-11-01 15:49:35 -05:00
workers Asynchronously detect image aspect ratios and apply proper attributes (#15170) 2021-10-26 13:39:25 -07:00
i18n_spec.rb Misc i18n fixes (#14852) 2021-10-05 13:22:33 +02:00
rails_helper.rb Add feature flag for Connect (#14644) 2021-09-13 10:45:56 -04:00
spec_helper.rb