From 2f3703dca1400f67f3b44ab179b1670dd8cae798 Mon Sep 17 00:00:00 2001 From: Victor Engmark 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 f2ca1324128c9e..9857221030a5cc 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 df5012031209a4..aa5abd62ec6ccf 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();