From 8b9c84d9572f7b1b3ebe7e982de4eb3132f65455 Mon Sep 17 00:00:00 2001 From: pd9333 Date: Sat, 9 Jul 2022 20:55:36 +0800 Subject: [PATCH] fix: change era of zone in time instead of 1 minute behind --- src/Time.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Time.elm b/src/Time.elm index 12db313..22749a9 100644 --- a/src/Time.elm +++ b/src/Time.elm @@ -326,7 +326,7 @@ toAdjustedMinutesHelp defaultOffset posixMinutes eras = posixMinutes + defaultOffset era :: olderEras -> - if era.start < posixMinutes then + if era.start <= posixMinutes then posixMinutes + era.offset else toAdjustedMinutesHelp defaultOffset posixMinutes olderEras