From b9dc2f350632213cfb88c88dfcd14c6aa62ee326 Mon Sep 17 00:00:00 2001
From: Victor Engmark <victor@engmark.name>
Date: Fri, 16 Jun 2023 07:46:08 +0000
Subject: [PATCH] test: time difference with time zone (#22782)

---
 docs/development/local-development.md | 4 ++++
 lib/util/date.spec.ts                 | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/development/local-development.md b/docs/development/local-development.md
index f2ca132412..9857221030 100644
--- a/docs/development/local-development.md
+++ b/docs/development/local-development.md
@@ -29,6 +29,10 @@ sudo apt-get update
 sudo apt-get install -y git build-essential nodejs yarn
 ```
 
+#### Nix
+
+To enter a development shell with the necessary packages, run `nix-shell --packages gcc gitFull nodejs yarn`.
+
 #### Windows
 
 Follow these steps to set up your development environment on Windows 10.
diff --git a/lib/util/date.spec.ts b/lib/util/date.spec.ts
index df50120312..aa5abd62ec 100644
--- a/lib/util/date.spec.ts
+++ b/lib/util/date.spec.ts
@@ -7,7 +7,7 @@ import {
 } from './date';
 
 describe('util/date', () => {
-  const t0 = DateTime.fromISO('2020-10-10');
+  const t0 = DateTime.fromISO('2020-10-10', { zone: 'utc' });
 
   beforeAll(() => {
     jest.useFakeTimers();
-- 
GitLab