@acorex/core 20.4.13 → 20.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1578,10 +1578,9 @@ class AXTimeLeftFormatter {
|
|
|
1578
1578
|
// Determine the best format if format is null (following standard conventions)
|
|
1579
1579
|
// Standard time thresholds based on common social media platforms
|
|
1580
1580
|
if (isNil(format)) {
|
|
1581
|
-
if (durationInSeconds <
|
|
1581
|
+
if (durationInSeconds < 60)
|
|
1582
1582
|
format = 'now'; // 0-10s: "just now"
|
|
1583
|
-
else if (durationInSeconds < 60)
|
|
1584
|
-
format = 's'; // 10-60s: "X seconds ago"
|
|
1583
|
+
// else if (durationInSeconds < 60) format = 's'; // 10-60s: "X seconds ago"
|
|
1585
1584
|
else if (durationInSeconds < 3600)
|
|
1586
1585
|
format = 'm'; // 1-60 min: "X minutes ago"
|
|
1587
1586
|
else if (durationInSeconds < 86400)
|