From d4fcc4d57db38f0cdf1e8f8a841131eeac812e7f Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Thu, 5 May 2022 16:03:04 +0700 Subject: [PATCH] Swap if start > end* 2 --- web/_js/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/_js/time.js b/web/_js/time.js index 540dfcde..46b52394 100644 --- a/web/_js/time.js +++ b/web/_js/time.js @@ -287,7 +287,7 @@ function formatPeriod(start, end, variation) { } else periodString = start } - if (end > start) [start, end] = [end, start] + if (start > end) [start, end] = [end, start] else periodString = start + "-" + end if (periodString && variationString) return variationsConfig[variation].code + ":" + periodString if (variationString) return variationString