@roottale/cms-renderer-next 0.75.1 → 0.75.2
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.
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-3UBTE7BV.js → chunk-6Y6CDEV3.js} +5 -1
- package/dist/chunk-6Y6CDEV3.js.map +1 -0
- package/dist/routes.js +4 -3
- package/dist/routes.js.map +1 -1
- package/dist/server.js +8 -4
- package/dist/server.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-3UBTE7BV.js.map +0 -1
package/dist/server.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
RootTaleImageLightbox
|
|
3
3
|
} from "./chunk-22MB5YER.js";
|
|
4
4
|
import {
|
|
5
|
+
DISPLAY_TIME_ZONE,
|
|
5
6
|
collectCategories,
|
|
6
7
|
collectCategoriesWithCounts,
|
|
7
8
|
collectCollectionCategories,
|
|
@@ -10,7 +11,7 @@ import {
|
|
|
10
11
|
makeCategoryHref,
|
|
11
12
|
storedPostPath,
|
|
12
13
|
trimSlash
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6Y6CDEV3.js";
|
|
14
15
|
import {
|
|
15
16
|
getSectionNodeRenderer
|
|
16
17
|
} from "./chunk-KSPPYX22.js";
|
|
@@ -78,7 +79,8 @@ function formatPublishedDate(iso) {
|
|
|
78
79
|
return new Intl.DateTimeFormat("ko-KR", {
|
|
79
80
|
year: "numeric",
|
|
80
81
|
month: "2-digit",
|
|
81
|
-
day: "2-digit"
|
|
82
|
+
day: "2-digit",
|
|
83
|
+
timeZone: DISPLAY_TIME_ZONE
|
|
82
84
|
}).format(d);
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -1711,7 +1713,8 @@ function formatPostDate(iso) {
|
|
|
1711
1713
|
return new Intl.DateTimeFormat("ko-KR", {
|
|
1712
1714
|
year: "numeric",
|
|
1713
1715
|
month: "2-digit",
|
|
1714
|
-
day: "2-digit"
|
|
1716
|
+
day: "2-digit",
|
|
1717
|
+
timeZone: DISPLAY_TIME_ZONE
|
|
1715
1718
|
}).format(date);
|
|
1716
1719
|
}
|
|
1717
1720
|
function distinctModifiedDate(publishedAt, updatedAt) {
|
|
@@ -1963,7 +1966,8 @@ function formatExpiry(locale, iso) {
|
|
|
1963
1966
|
if (Number.isNaN(date.getTime())) return null;
|
|
1964
1967
|
const time = new Intl.DateTimeFormat(locale === "en" ? "en-US" : "ko-KR", {
|
|
1965
1968
|
hour: "2-digit",
|
|
1966
|
-
minute: "2-digit"
|
|
1969
|
+
minute: "2-digit",
|
|
1970
|
+
timeZone: DISPLAY_TIME_ZONE
|
|
1967
1971
|
}).format(date);
|
|
1968
1972
|
return locale === "en" ? `Valid until ${time}.` : `${time}\uAE4C\uC9C0 \uBCFC \uC218 \uC788\uC5B4\uC694.`;
|
|
1969
1973
|
}
|