@enure/jacklin 2.0.6 → 2.0.8
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/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5547,9 +5547,9 @@ import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
|
|
|
5547
5547
|
if (typeof dateStr === "string") {
|
|
5548
5548
|
const date = new Date(dateStr);
|
|
5549
5549
|
const year = date.getFullYear();
|
|
5550
|
-
const month = date.getMonth();
|
|
5550
|
+
const month = date.getMonth() + 1;
|
|
5551
5551
|
const fullMonth = month.toString().length === 1 ? `0${month}` : month;
|
|
5552
|
-
return `${
|
|
5552
|
+
return `${fullMonth}/${year}`;
|
|
5553
5553
|
} else {
|
|
5554
5554
|
return dateStr;
|
|
5555
5555
|
}
|
package/index.ts
CHANGED
|
@@ -18,9 +18,9 @@ Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
|
18
18
|
if (typeof dateStr === 'string') {
|
|
19
19
|
const date = new Date(dateStr);
|
|
20
20
|
const year = date.getFullYear();
|
|
21
|
-
const month = date.getMonth();
|
|
21
|
+
const month = date.getMonth() + 1;
|
|
22
22
|
const fullMonth = month.toString().length === 1 ? `0${month}` : month;
|
|
23
|
-
return `${
|
|
23
|
+
return `${fullMonth}/${year}`;
|
|
24
24
|
} else {
|
|
25
25
|
return dateStr;
|
|
26
26
|
}
|