fix year
This commit is contained in:
@@ -12,10 +12,7 @@ const posts = (await getBlogs()).sort(
|
|||||||
);
|
);
|
||||||
const current = new Date();
|
const current = new Date();
|
||||||
const currentMonth = current.getMonth();
|
const currentMonth = current.getMonth();
|
||||||
const currentYear =
|
const currentYear = `${current.getUTCFullYear() - 1}`.substring(2);
|
||||||
`${currentMonth === 0 ? current.getUTCFullYear() - 1 : current.getUTCFullYear() - 2}`.substring(
|
|
||||||
2,
|
|
||||||
);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
Reference in New Issue
Block a user